Expand description
Combinators applying their child parser multiple times
Structs§
- Count
- Parser implementation for the count combinator
- Fill
- Parser implementation for the fill combinator
- Fold
- Parser implementation for the fold combinator
- Fold
Many0 - Parser implementation for the fold_many0 combinator
- Fold
Many1 - Parser implementation for the fold_many1 combinator
- Fold
ManyMN - Parser implementation for the fold_many_m_n combinator
- Length
Count - Parser implementation for the length_count combinator
- Length
Value - Parser implementation for the length_value combinator
- Many
- Parser implementation for the many combinator
- Many0
- Parser implementation for the many0 combinator
- Many0
Count - Parser implementation for the many0_count combinator
- Many1
- Parser implementation for the many1 combinator
- Many1
Count - Parser implementation for the many1_count combinator
- ManyMN
- Parser implementation for the many_m_n combinator
- Many
Till - Parser implementation for the many_till combinator
- Separated
List0 - Parser implementation for the separated_list0 combinator
- Separated
List1 - Parser implementation for the separated_list1 combinator
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
- Applies a parser and accumulates the results using a given function and initial value. Fails if the amount of time the embedded parser is run is not within the specified range.
- 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. - many
- Repeats the embedded parser and collects the results in a type implementing
Extend + Default. Fails if the amount of time the embedded parser is run is not within the specified range. - 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.