UNPKG

thaw-grammar

Version:

Implementations of the grammars of several programming languages, including LISP, Scheme, Prolog, and the Lambda Calculus.

11 lines 597 B
import { GrammarSymbol, IToken, ParserSelector, SemanticStackType } from 'thaw-interpreter-types'; import { GrammarBase } from 'thaw-interpreter-core'; export declare class ArithmeticGrammar extends GrammarBase { constructor(); get languageName(): string; get defaultParser(): ParserSelector; executeSemanticAction(semanticStack: SemanticStackType, action: string): void; tokenToSymbol(token: IToken): GrammarSymbol; pushTokenOntoSemanticStack(semanticStack: SemanticStackType, tokenAsSymbol: number, token: IToken): void; } //# sourceMappingURL=arithmetic-grammar.d.ts.map