• This overload makes a Matcher that runs all given matchers one after another and returns all results in an array.

    Type Parameters

    • TToken

    • TOptions

    • TValue

    Parameters

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

      Matchers to run sequentially.

    Returns Matcher<TToken, TOptions, TValue[]>

  • Make a parser that runs all given parsers one after another and returns all results in an array.

    Nonmatch is returned if any of parsers didn't match.

    Use ab or abc if you need a limited number of parsers of different types.

    Type Parameters

    • TToken

    • TOptions

    • TValue

    Parameters

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

      Parsers to run sequentially.

    Returns Parser<TToken, TOptions, TValue[]>

Generated using TypeDoc