UNPKG

pegisland

Version:

General PEG-based parser supporting island grammars with lake symbols

10 lines 897 B
import { ParsingError } from './PackratParser'; import { IParseTree } from './ParseTree'; export declare type SimpleTree = Nonterminals | ['terminal', RegExp] | ['' | '/', ...SimpleTree[]] | ['*' | '+' | '?' | '!' | '&', SimpleTree]; export declare type Nonterminals = 'AND' | 'Char' | 'Class' | 'CLOSE' | 'COLON' | 'COLON_NOT' | 'Comment' | 'DOT' | 'Definition' | 'Expression' | 'grammar' | 'Identifier' | 'LAKE_CLOSE' | 'LAKE_OPEN' | 'LEFT_ARROW' | 'NamedIdentifier' | 'NOT' | 'OPEN' | 'OptAnnotations' | 'PLUS' | 'PLUS_PLUS' | 'Primary' | 'Prefix' | 'QUESTION' | 'Regexp' | 'Rewriting' | 'RIGHT_ARROW' | 'SEMICOLON' | 'Sequence' | 'SLASH' | 'Space' | 'Spacing' | 'STAR' | 'STAR_PLUS' | 'String' | 'Suffix'; export declare class PegParser { private readonly pegInterpreter; constructor(); parse(s: string): IParseTree | ParsingError | Error; } //# sourceMappingURL=PegParser.d.ts.map