Expand description
Combinators applying their child parser multiple times
Functionsยง
- count
- Runs the embedded parser
counttimes, gathering the results in aVec - fill
- Runs the embedded parser repeatedly, filling the given slice with results.
- fold_
many0 - Repeats the embedded parser, calling
gto gather the results. - fold_
many1 - Repeats the embedded parser, calling
gto gather the results. - fold_
many_ m_ n - Repeats the embedded parser
m..=ntimes, callinggto gather the results - length_
count - Gets a number from the first parser, then applies the second parser that many times.
- length_
data - Gets a number from the parser and returns a
subslice of the input of that size.
If the parser returns
Incomplete,length_datawill return an error. - length_
value - 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. - many0
- Repeats the embedded parser, gathering the results in a
Vec. - many0_
count - Repeats the embedded parser, counting the results
- many1
- Runs the embedded parser, gathering the results in a
Vec. - many1_
count - Runs the embedded parser, counting the results.
- many_
m_ n - Repeats the embedded parser
m..=ntimes - many_
till - Applies the parser
funtil the parsergproduces a result. - separated_
list0 - Alternates between two parsers to produce a list of elements.
- separated_
list1 - Alternates between two parsers to produce a list of elements until
Err::Error.