Expand description
Combinators applying their child parser multiple times
Functions
Accumulatethe output of a parser into a container, likeVec- Runs the embedded parser repeatedly, filling the given slice with results.
- Repeats the embedded parser, calling
gto gather the results. - Repeats the embedded parser, calling
gto gather the results. - Repeats the embedded parser
m..=ntimes, callinggto gather the results - Gets a number from the first parser, then applies the second parser that many times.
- Gets a number from the parser and returns a subslice of the input of that size.
- 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_valuewill return an error. Accumulatethe output of a parser into a container, likeVecAccumulatethe output of a parser into a container, likeVec- Repeats the embedded parser
m..=ntimes - Applies the parser
funtil the parsergproduces a result. - Alternates between two parsers to produce a list of elements.
- Alternates between two parsers to produce a list of elements until
ErrMode::Backtrack. - Alternates between two parsers, merging the results (left associative)
- Alternates between two parsers, merging the results (right associative)