Expand description
combinators applying their child parser multiple times
Functions§
- Runs the embedded parser a specified number of times. Returns the results in a
Vec
. - Applies a parser until it fails and accumulates the results using a given function and initial value.
- Applies a parser until it fails and accumulates the results using a given function and initial value. Fails if the embedded parser does not succeed at least once.
- Applies a parser
n
times or until it fails and accumulates the results using a given function and initial value. Fails if the embedded parser does not succeed at leastm
times. - Gets a number from the first parser, takes a subslice of the input of that size, then applies the second parser on that subslice. If the second parser returns Incomplete, length_value will return an error.
- Gets a number from the first parser, takes a subslice of the input of that size, then applies the second parser on that subslice. If the second parser returns Incomplete, length_value will return an error.
- Repeats the embedded parser until it fails and returns the results in a
Vec
. - Repeats the embedded parser until it fails and returns the number of successful iterations.
- Runs the embedded parser until it fails and returns the results in a
Vec
. Fails if the embedded parser does not produce at least one result. - Repeats the embedded parser until it fails and returns the number of successful iterations. Fails if the embedded parser does not succeed at least once.
- Repeats the embedded parser
n
times or until it fails and returns the results in aVec
. Fails if the embedded parser does not succeed at leastm
times. - Applies the parser
f
until the parserg
produces a result. Returns a pair consisting of the results off
in aVec
and the result ofg
. - Alternates between two parsers to produce a list of elements.
- Alternates between two parsers to produce a list of elements. Fails if the element parser does not produce at least one element.