SeparatedRepeatingParserExtension<R> extension
- on
-
- Parser<
R>
- Parser<
Methods
-
plusSeparated<
S> (Parser< S> separator) → Parser<SeparatedList< R, S> > -
Available on Parser<
Returns a parser that consumes the receiver one or more times separated by theR> , provided by the SeparatedRepeatingParserExtension extensionseparator
parser. The resulting parser returns a SeparatedList containing collections of both the elements of typeR
as well as the separators of typeS
. -
repeatSeparated<
S> (Parser< S> separator, int min, int max) → Parser<SeparatedList< R, S> > -
Available on Parser<
Returns a parser that consumes the receiver betweenR> , provided by the SeparatedRepeatingParserExtension extensionmin
andmax
times separated by theseparator
parser. The resulting parser returns a SeparatedList containing collections of both the elements of typeR
as well as the separators of typeS
. -
starSeparated<
S> (Parser< S> separator) → Parser<SeparatedList< R, S> > -
Available on Parser<
Returns a parser that consumes the receiver zero or more times separated by theR> , provided by the SeparatedRepeatingParserExtension extensionseparator
parser. The resulting parser returns a SeparatedList containing collections of both the elements of typeR
as well as the separators of typeS
. -
timesSeparated<
S> (Parser< S> separator, int count) → Parser<SeparatedList< R, S> > -
Available on Parser<
Returns a parser that consumes the receiverR> , provided by the SeparatedRepeatingParserExtension extensioncount
times separated by theseparator
parser. The resulting parser returns a SeparatedList containing collections of both the elements of typeR
as well as the separators of typeS
.