repeatGreedy method
Returns a parser that parses the receiver at least min
and at most max
times until it reaches a limit
. This is a greedy non-blind
implementation of the PossessiveRepeatingParserExtension.repeat
operator. The limit
is not consumed.
This is the more generic variation of the starGreedy and plusGreedy combinators.
Implementation
@useResult
Parser<List<R>> repeatGreedy(Parser<void> limit, int min, int max) =>
GreedyRepeatingParser<R>(this, limit, min, max);