SeparatedByParserExtension<T> extension

on

Methods

separatedBy<R>(Parser separator, {bool includeSeparators = true, bool optionalSeparatorAtStart = false, 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 parameter R defines the type of the returned list.