• This overload makes a Matcher that runs all given matchers in sequence and discards (skips) all results (Returns a match with a dummy value).

    Implementation is based on all and map.

    This function only exists to make the intent clear. Use in combination with left, right or other combinators to make the null result disappear.

    Type Parameters

    • TToken

    • TOptions

    Parameters

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

      Parsers to run sequentially.

    Returns Matcher<TToken, TOptions, unknown>

  • Make a parser that runs all given parsers in sequence and discards (skips) all results (Returns a match with a dummy value).

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

    Implementation is based on all and map.

    This function only exists to make the intent clear. Use in combination with left, right or other combinators to make the null result disappear.

    Type Parameters

    • TToken

    • TOptions

    Parameters

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

      Parsers to run sequentially.

    Returns Parser<TToken, TOptions, unknown>

Generated using TypeDoc