Interface IGrammarPath

Structure for the path the parser "took" to reach a certain position in the grammar.

interface IGrammarPath {
    occurrenceStack: number[];
    ruleStack: string[];
}

Hierarchy (view full)

Properties

occurrenceStack: number[]

The occurrence index (SUBRULE1/2/3/5/...) of each Grammar rule invoked and still unterminated. Used to distinguish between different invocations of the same subrule at the same top level rule.

ruleStack: string[]

The Grammar rules invoked and still unterminated to reach this Grammar Path.