interface ParseOptions<T extends StartRuleNames> {
    grammarSource?: GrammarSource;
    peg$currPos?: number;
    peg$library?: boolean;
    peg$maxFailExpected?: Expectation[];
    peg$silentFails?: number;
    startRule?: T;
    tracer?: ParserTracer;
    [key: string]: unknown;
}

Type Parameters

Indexable

  • [key: string]: unknown

Properties

grammarSource?: GrammarSource

String or object that will be attached to the each LocationRange object created by the parser. For example, this can be path to the parsed file or even the File object.

peg$currPos?: number
peg$library?: boolean
peg$maxFailExpected?: Expectation[]
peg$silentFails?: number
startRule?: T
tracer?: ParserTracer