• This overload makes a Matcher that tries multiple parsers (last entry is a matcher) at the same position and returns the first successful match.

    Type Parameters

    • TToken

    • TOptions

    • TValue

    Parameters

    • Rest ...ps: [...Parser<TToken, TOptions, TValue>[], Matcher<TToken, TOptions, TValue>]

      Parsers to try.

    Returns Matcher<TToken, TOptions, TValue>

  • Make a parser that tries multiple parsers at the same position and returns the first successful match or a nonmatch if there was none.

    Type Parameters

    • TToken

    • TOptions

    • TValue

    Parameters

    • Rest ...ps: Parser<TToken, TOptions, TValue>[]

      Parsers to try.

    Returns Parser<TToken, TOptions, TValue>

Generated using TypeDoc