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