thaw-grammar
Version:
Implementations of the grammars of several programming languages, including LISP, Scheme, Prolog, and the Lambda Calculus.
13 lines • 820 B
TypeScript
import { GrammarSymbol, IToken, ParserSelector, SemanticStackType } from 'thaw-interpreter-types';
import { GrammarBase, Name } from 'thaw-interpreter-core';
import { ICLUExpression, ICLUVariable } from './domain-object-model/interfaces/ivalue';
export declare class CluGrammar extends GrammarBase {
constructor();
get languageName(): string;
get defaultParser(): ParserSelector;
executeSemanticAction(semanticStack: SemanticStackType, action: string): void;
tokenToSymbol(token: IToken): GrammarSymbol;
pushTokenOntoSemanticStack(semanticStack: SemanticStackType, tokenAsSymbol: GrammarSymbol, token: IToken): void;
protected createLetUsage(letName: Name, varExprList: [ICLUVariable, ICLUExpression][], expression: ICLUExpression): ICLUExpression;
}
//# sourceMappingURL=clu-grammar.d.ts.map