Module chomp::parsers
[−]
[src]
Basic parsers.
Structs
Error |
Common error for the basic Chomp parsers. |
Functions
any |
Matches any item, returning it if present. |
eof |
Matches the end of the input. |
not_token |
Matches a single token as long as it is not equal to |
peek |
Matches any item but does not consume it, on success it gives |
peek_next |
Matches any item but does not consume it. |
run_scanner |
Like |
satisfy |
Matches an item using |
satisfy_with |
Reads a single token, applies the transformation |
scan |
The predicate consumes and transforms a state argument, this parser will match everything until
the predicate returns |
skip_while |
Skips over tokens in the input until |
skip_while1 |
Skips over tokens in the input until |
string |
Matches the given slice against the parser, returning the matched slice upon success. |
take |
Matches |
take_remainder |
Matches the remainder of the buffer and returns it, always succeeds. |
take_till |
Matches all items until |
take_while |
Matches all items while |
take_while1 |
Matches all items while |
token |
Matches a single token, returning the match on success. |
Type Definitions
SimpleResult |
Result returned from the basic parsers. |