Function recursive

  • A wrapper that helps to create recursive parsers - allows to refer to a parser defined later in the code.

    Alternatively, parsers defined/wrapped as functions (rather than constants obtained by composition) don't need this.

    This overload is for Matchers.

    Returns

    A parser wrapped into a function.

    Type Parameters

    • TToken

    • TOptions

    • TValue

    Parameters

    • f: (() => Matcher<TToken, TOptions, TValue>)

      A function that returns a matcher.

        • (): Matcher<TToken, TOptions, TValue>
        • Returns Matcher<TToken, TOptions, TValue>

    Returns Matcher<TToken, TOptions, TValue>

  • A wrapper that helps to create recursive parsers - allows to refer to a parser defined later in the code.

    Alternatively, parsers defined/wrapped as functions (rather than constants obtained by composition) don't need this.

    Returns

    A parser wrapped into a function.

    Type Parameters

    • TToken

    • TOptions

    • TValue

    Parameters

    • f: (() => Parser<TToken, TOptions, TValue>)

      A function that returns a parser.

        • (): Parser<TToken, TOptions, TValue>
        • Returns Parser<TToken, TOptions, TValue>

    Returns Parser<TToken, TOptions, TValue>

Generated using TypeDoc