repeatSeparated<S> method
Returns a parser that consumes the receiver between min and max times
separated by the separator parser. The resulting parser returns a
SeparatedList containing collections of both the elements of type R as
well as the separators of type S.
Implementation
@useResult
Parser<SeparatedList<R, S>> repeatSeparated<S>(
Parser<S> separator,
int min,
int max,
) => SeparatedRepeatingParser<R, S>(this, separator, min, max);