SeparatedByParserExtension<T> extension
- on
-
- Parser<
T>
- Parser<
Methods
-
separatedBy<
R> (Parser separator, {bool includeSeparators = true, bool optionalSeparatorAtStart = false, bool optionalSeparatorAtEnd = false}) → Parser< List< R> > -
Available on Parser<
Returns a parser that consumes the receiver one or more times separated by theT> , provided by the SeparatedByParserExtension extensionseparatorparser. 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 parameterRdefines the type of the returned list.