Module combine::combinator
[−]
[src]
Module containing all specific parsers
Structs
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 to apply them each in order. Fails if all parsers fails or if an applied parser consumes input before failing. |
env_parser |
Constructs a parser out of an environment and a function which needs the given environment to do the parsing. This is commonly useful to allow multiple parsers to share some environment while still allowing the parsers to be written in separate functions. |
look_ahead |
look_ahead acts as p but doesn't consume input on success. |
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 |
sep_by1 |
Parses |
sep_end_by |
Parses |
sep_end_by1 |
Parses |
skip_many |
Parses |
skip_many1 |
Parses |
token |
Parses a character and succeeds if the character is equal to |
try |
Try acts as |
unexpected |
Always fails with |
value |
Always returns the value |