Class Candidate<T>

Candidate for ELR parsers.

Type Parameters

  • T

Hierarchy

  • Candidate

Constructors

Properties

digested: number

How many grammars are already matched in this.gr.

gr: Readonly<GrammarRule<T>>
nextMap: Map<string, null | Candidate<T>>

ast node str => candidate. This will be calculated during DFA.calculateAllStates.

str?: string

Cache the string representation.

Accessors

Methods

  • Type Parameters

    • T

    Parameters

    • data: Pick<Candidate<T>, "digested" | "gr">
    • sep: string = " "
    • arrow: string = "<="
    • index: string = "@"

    Returns string

Generated using TypeDoc