Function manyTill

  • Returns a parser that consumes input till the given parser succeeds.

    Type Parameters

    • T

    Parameters

    • parser: Parser<T>

      the stop parser

    Returns Parser<string>

    a parser that consumes the input string until the stop parser succeeds. Then it returns the consumed input as a string. The stop parser's match is not included in the result.

Generated using TypeDoc