• Make a parser that runs a given parser and then a dynamically returned parser.

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

    Compared to condition this can have any complex logic inside.

    chain allows to reuse the first parser.

    Type Parameters

    • TToken

    • TOptions

    • TValue

    Parameters

    • p: Parser<TToken, TOptions, Parser<TToken, TOptions, TValue>>

      A parser that returns another parser as a value. If it consumes the input then the returned parser will be called with the new position.

    Returns Parser<TToken, TOptions, TValue>

Generated using TypeDoc