Crate pups

Crate pups 

Source

Structs§

Check
Parser mode that does not extract any information, just ensures the parser matches the input
Parse
Parser mode that extracts output or an error from the parser’s input
Text
UTF-8 text that can be consumed by parsers
Verbose
Parser mode that extracts all information from the parser’s input

Enums§

ModeResult
A result produced by applying a parser to input

Traits§

Combinators
Methods implemented for all parsers that allow easy construction of parser combinators
Parser
Implementors can be parsed from an input type

Functions§

boxed
Optionally applies a parser, converting a failure into Option::None
choice
Optionally applies a parser, converting a failure into Option::None
delimited
Applies a parser preceded by an ignored prefix parser, and followed by an ignored terminator parser
emitting
Replaces a parser’s output
end
Matches the end of the provided input
first
Consumes input until a parser can be applied successfully or there is no input left
mapped
Maps a parser’s output to another type using a function
mapped_error
Maps a parser’s output to another type using a function
mapped_messages
Maps a parser’s output to another type using a function
newline
Parses a single newline character
nothing
Parses absolutely nothing
number
Parses a number composed of ASCII decimal digits 0-9
optional
Optionally applies a parser, converting a failure into Option::None
preceded
Applies a parser after an ignored prefix parser
recoverable
Applies a parser, but uses another one to recover if the first fails, keeping messages from both
repeated
Iterates application of a parser
repeated_at_least
Iterates application of a parser at least a minimum number of times
separated
Iterates application of a parser separated by application of another parser
separated_at_least
Iterates application of a parser separated by application of another parser at a minimum number of times
sequenced
Applies a parser followed by another parser, and returns the outputs as a tuple
terminated
Applies a parser followed by an ignored terminator parser
token
Parses a lexical token
traced
Applies a parser and returns its error or output as a status message with a name
unicode_identifier
Parses a unicode identifier
whitespace
Parses whitespace

Type Aliases§

ParseResult
Shorthand result type for parsers
VerboseResult
Shorthand result type for verbose parsers