parjs
Version:
A parser-combinator library for JavaScript.
13 lines (12 loc) • 398 B
TypeScript
/**
* @module parjs/combinators
*/
/** */
import { ParjsCombinator } from "../../index";
/**
* Applies the source parser until it fails softly, and yields all of its results
* in an array.
* @param maxIterations Optionally, the maximum number of times to apply
* the source parser. Defaults to `Infinity`.
*/
export declare function many<T>(maxIterations?: number): ParjsCombinator<T, T[]>;