pegisland
Version:
General PEG-based parser supporting island grammars with lake symbols
13 lines • 557 B
TypeScript
import { IParseTree } from './ParseTree';
import { Position } from './Position';
import { IParsingExpression } from './ParsingExpression';
import { IParsingEnv } from './IParsingEnv';
export declare class Rule {
symbol: string;
rhs: IParsingExpression;
isWater: boolean;
constructor(symbol: string, rhs: IParsingExpression, isWater?: boolean);
parse(env: IParsingEnv, pos: Position): [IParseTree, Position] | null;
parseWithoutMemo(env: IParsingEnv, pos: Position): [IParseTree, Position] | null;
}
//# sourceMappingURL=Rule.d.ts.map