SeparatedRepeatingParserExtension<R> extension
Methods
-
plusSeparated<S>(Parser<S> separator)
→ Parser<SeparatedList<R, S>>
-
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
.
-
repeatSeparated<S>(Parser<S> separator, int min, int max)
→ Parser<SeparatedList<R, S>>
-
Returns a parser that consumes the receiver between
min
and max
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
.
-
starSeparated<S>(Parser<S> separator)
→ Parser<SeparatedList<R, S>>
-
Returns a parser that consumes the receiver zero 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
.
-
timesSeparated<S>(Parser<S> separator, int count)
→ Parser<SeparatedList<R, S>>
-
Returns a parser that consumes the receiver
count
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
.