Function many

  • Takes a parser and runs it zero or more times, returning the results as an array. If the parser is a capture parser, it returns the captures as an array in this form:

    { captures: <array of captures> }
    

    Type Parameters

    Parameters

    • parser: T

      parser to run

    Returns InferManyReturnType<T>

    • parser that runs the given parser zero to many times, and returns the result as an array

Generated using TypeDoc