import { Parser } from "https://deno.land/x/nearley@2.19.7-deno/mod.ts";
Constructors
new
Parser(grammar: Grammar, options?: ParserOptions)Properties
Methods
feed(chunk: string): this
The Parser object can be fed data in parts with .feed(data). You can then find an array of parsings with the .results property. If results is empty, then there are no parsings. If results contains multiple values, then that combination is ambiguous.
finish(): any[]
restore(column: { [key: string]: any; lexerState: LexerState; }): void
save(): { [key: string]: any; lexerState: LexerState; }