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