Module parser_combinators::combinator
[−]
[src]
Module containing all specific parsers
Structs
| And | |
| AndThen | |
| Any | |
| Between | |
| Chainl1 | |
| Chainr1 | |
| Choice | |
| Expected | |
| FnParser | |
| Iter | |
| Many | |
| Many1 | |
| Map | |
| Message | |
| NotFollowedBy | |
| Optional | |
| Or | |
| Satisfy | |
| SepBy | |
| Skip | |
| SkipMany | |
| SkipMany1 | |
| Then | |
| Token | |
| Try | |
| Unexpected | |
| Value | |
| With |
Traits
| ParserExt |
Extension trait which provides functions that are more conveniently used through method calls |
Functions
| any |
Parses any token |
| between |
Parses |
| chainl1 |
Parses |
| chainr1 |
Parses |
| choice |
Takes an array of parsers and tries them each in turn. Fails if all parsers fails or when a parsers fails with a consumed state. |
| many |
Parses |
| many1 |
Parses |
| not_followed_by |
Succeeds only if |
| optional |
Returns |
| parser |
Wraps a function, turning it into a parser Mainly needed to turn closures into parsers as function types can be casted to function pointers to make them usable as a parser |
| satisfy |
Parses a token and succeeds depending on the result of |
| sep_by |
Parses |
| skip_many |
Parses |
| skip_many1 |
Parses |
| token |
Parses a character and succeeds if the characther is equal to |
| try |
Try acts as |
| unexpected |
Always fails with |
| value |
Always returns the value |