SeparatedBy<T> extension
- on
-
- Parser<
T>
- Parser<
Methods
-
separatedBy<
R> (Parser separator, {bool includeSeparators = true, bool optionalSeparatorAtEnd = false}) → Parser< List< R> > -
Returns a parser that consumes the receiver one or more times separated
by the
separator
parser. The resulting parser returns a flat list of the parse results of the receiver interleaved with the parse result of the separator parser. The type parameterR
defines the type of the returned list.