Interface ExtraParserOptions

interface ExtraParserOptions {
    peg$failAfter?: { [ruleName: string]: number };
    peg$startRuleFunction?: string;
}

Properties

peg$failAfter?: { [ruleName: string]: number }

Number of times for each of the given rules to succeed before they fail. Only applies in the augmented code.

peg$startRuleFunction?: string

In the augmented code only, use this function as the start rule rather than the default. This gives access to functions that are NOT valid start rules for internal testing.