plusSeparated<S> method

  1. @useResult
Parser<SeparatedList<R, S>> plusSeparated<S>(
  1. Parser<S> separator
)

Returns a parser that consumes the receiver one or more 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>> plusSeparated<S>(Parser<S> separator) =>
    repeatSeparated<S>(separator, 1, unbounded);