Class State<T>

State for ELR parsers.

Type Parameters

  • T

Hierarchy

  • State

Constructors

Properties

candidates: readonly Candidate<T>[]
nextMap: Map<string, null | State<T>>

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

Methods

  • Parameters

    • next: Readonly<ASTNode<any>>
    • NTClosures: ReadonlyMap<string, GrammarRule<T>[]>
    • allStates: Map<string, State<T>>
    • allInitialCandidates: ReadonlyMap<string, Candidate<T>>

    Returns {
        changed: boolean;
        state: null | State<T>;
    }

    • changed: boolean
    • state: null | State<T>
  • Get the string representation of this state. The result is sorted by candidate string, so that the same state will have the same string representation.

    Returns string

Generated using TypeDoc