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

    Implementation is based on ab.

    Type Parameters

    • TToken

    • TOptions

    • TValueA

    • TValueB

    Parameters

    • pa: Matcher<TToken, TOptions, TValueA>

      First matcher (result is discarded).

    • pb: Matcher<TToken, TOptions, TValueB>

      Second matcher (result is returned).

    Returns Matcher<TToken, TOptions, TValueB>

  • Make a parser that tries two parsers one after another and returns the result from the second 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 discarded).

    • pb: Parser<TToken, TOptions, TValueB>

      Second parser (result is returned).

    Returns Parser<TToken, TOptions, TValueB>

Generated using TypeDoc