plusGreedy method
Returns a parser that parses the receiver one or more times until it
reaches limit
. This is a greedy non-blind implementation of the plus
operator. The limit
is not consumed.
For example, the parser char('{') & any().plusGreedy(char('}')) & char('}')
consumes the complete input '{abc}def}'
of '{abc}def}'
.
See plusLazy
for the lazy, more efficient, and generally preferred
variation of this combinator.
Implementation
Parser<List<T>> plusGreedy(Parser<void> limit) =>
repeatGreedy(limit, 1, unbounded);