This commit is contained in:
counterweight 2026-05-14 10:56:04 +02:00
parent bc92231240
commit b8225c639e
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
11904 changed files with 1472749 additions and 133 deletions

View file

@ -0,0 +1,19 @@
import { SemanticNode } from './semantic_node.js';
import { SemanticNodeFactory } from './semantic_node_factory.js';
export interface SemanticParser<T> {
parse(representation: T): SemanticNode;
parseList(list: T[]): SemanticNode[];
getFactory(): SemanticNodeFactory;
setFactory(factory: SemanticNodeFactory): void;
getType(): string;
}
export declare abstract class SemanticAbstractParser<T> implements SemanticParser<T> {
private type;
private factory_;
constructor(type: string);
abstract parse(representation: T): SemanticNode;
getFactory(): SemanticNodeFactory;
setFactory(factory: SemanticNodeFactory): void;
getType(): string;
parseList(list: T[]): SemanticNode[];
}