Module combine::parser::token [−][src]
Expand description
Parsers working with single stream items.
Structs
Functions
Parses any token.
Succeeds only if the stream is at end of input, fails otherwise.
Extract one token and succeeds if it is not part of tokens
.
Extract one token and succeeds if it is part of tokens
.
Parser which just returns the current position in the stream.
Always returns the value produced by calling f
.
Parses a token and succeeds depending on the result of predicate
.
Parses a token and passes it to predicate
. If predicate
returns Some
the parser succeeds
and returns the value inside the Option
. If predicate
returns None
the parser fails
without consuming any input.
Parses a character and succeeds if the character is equal to c
.
Parses multiple tokens.
Parses multiple tokens.
Always returns the value v
without consuming any input.