thaw-interpreter-types
Version:
TypeScript type information for thaw's interpreter code
11 lines • 554 B
TypeScript
import { IEqualityComparable, IStringifiable } from 'thaw-common-utilities.ts';
import { GrammarSymbol } from '../enums/grammar-symbols';
export declare type ProductionRhsElementType = GrammarSymbol | string;
export interface IProduction extends IEqualityComparable, IStringifiable {
readonly lhs: GrammarSymbol;
readonly rhs: ProductionRhsElementType[];
getRHSWithNoSemanticActions(): GrammarSymbol[];
stripOutSemanticActions(): IProduction;
containsSymbol(symbol: GrammarSymbol): boolean;
}
//# sourceMappingURL=iproduction.d.ts.map