Module combine::combinator
[−]
[src]
Module containing all specific parsers
Structs
Functions
and_then | |
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. |
count |
Extract one token and succeeds if it is part of |
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. |
eof |
Succeeds only if the stream is at end of input, fails otherwise. |
expected | |
flat_map | |
look_ahead |
look_ahead acts as p but doesn't consume input on success. |
many |
Parses |
many1 |
Parses |
map | |
message | |
none_of |
Extract one token and succeeds if it is part of |
not_followed_by |
Succeeds only if |
one_of |
Extract one token and succeeds if it is part of |
optional |
Returns |
or | |
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 |
position |
Parser which just returns the current position in the stream |
satisfy |
Parses a token and succeeds depending on the result of |
satisfy_map |
Parses a token and passes it to |
sep_by |
Parses |
sep_by1 |
Parses |
sep_end_by |
Parses |
sep_end_by1 |
Parses |
skip | |
skip_many |
Parses |
skip_many1 |
Parses |
then | |
token |
Parses a character and succeeds if the character is equal to |
tokens |
Parses |
try |
Try acts as |
unexpected |
Always fails with |
value |
Always returns the value |
with |