UNPKG

thaw-interpreter-types

Version:
11 lines 554 B
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