Traqula
    Preparing search index...

    Interface DSLMethodOptsWithErr<T>

    interface DSLMethodOptsWithErr<T> {
        DEF: GrammarAction<T>;
        ERR_MSG?: string;
        GATE?: () => boolean;
        MAX_LOOKAHEAD?: number;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Properties

    The Grammar to process in this method.

    ERR_MSG?: string

    Short title/classification to what is being matched. Will be used in the error message,. If none is provided, the error message will include the names of the expected Tokens sequences which start the method's inner grammar

    GATE?: () => boolean

    A semantic constraint on this DSL method

    MAX_LOOKAHEAD?: number

    Maximum number of "following tokens" which would be used to Choose between the alternatives.

    By default this value is determined by the IParserConfig.maxLookahead value. A Higher value may be used for a specific DSL method to resolve ambiguities And a lower value may be used to resolve slow initialization times issues.

    TODO: create full docs and link