Module chomp::combinators
[−]
[src]
Basic combinators.
Modules
| bounded |
Bounded versions of combinators. |
Functions
| choice |
Attempts each parser yielded by an iterator in order, returning the result of the first successful parser. This combinator requires boxing of all the parsers returned from the iterator. |
| count |
Applies the parser |
| either |
Attempts the left parser first and then the right parser if the first parser fails. Result is
returned as an |
| look_ahead |
Applies the parser |
| many |
Parses many instances of |
| many1 |
Parses at least one instance of |
| many_till |
Applies the parser |
| matched_by |
Returns the result of the given parser as well as the slice which matched it. |
| option |
Tries the parser |
| or |
Tries to match the parser |
| sep_by |
Applies the parser |
| sep_by1 |
Applies the parser |
| skip_many |
Runs the given parser until it fails, discarding matched input. |
| skip_many1 |
Runs the given parser until it fails, discarding matched input, expects at least one match. |