• This overload makes a Matcher that applies two matchers one after another and returns the result from the first one.

    Implementation is based on ab.

    Type Parameters

    • TToken

    • TOptions

    • TValueA

    • TValueB

    Parameters

    • pa: Matcher<TToken, TOptions, TValueA>

      First matcher (result is returned).

    • pb: Matcher<TToken, TOptions, TValueB>

      Second matcher (result is discarded).

    Returns Matcher<TToken, TOptions, TValueA>

  • Make a parser that tries two parsers one after another and returns the result from the first one if both matched.

    A nonmatch is returned if any of two parsers did not match.

    Implementation is based on ab.

    Type Parameters

    • TToken

    • TOptions

    • TValueA

    • TValueB

    Parameters

    • pa: Parser<TToken, TOptions, TValueA>

      First parser (result is returned).

    • pb: Parser<TToken, TOptions, TValueB>

      Second parser (result is discarded).

    Returns Parser<TToken, TOptions, TValueA>

Generated using TypeDoc