Expand description
An efficient parser combinator.
See crate ::nom
.
Modules§
- Bit level parsers
- Choice combinators
- Parsers recognizing bytes streams
- Character specific parsers and combinators
- General purpose combinators
- Error management
- Lib module to re-export everything needed from
std
orcore
/alloc
. This is howserde
does it, albeit there it is not public. - Combinators applying their child parser multiple times
- Parsers recognizing numbers
- Combinators applying parsers in sequence
Macros§
- Creates a parse error from a
nom::ErrorKind
, the position in the input and the next error in the parsing tree - Creates a parse error from a
nom::ErrorKind
and the position in the input
Structs§
- Implementation of
Parser::and
- Implementation of
Parser::and_then
- Applies the parser, but do not a produce a value
- Indicates that the input data is complete: no more data may be added later
- Produces a value. This is the default behaviour for parsers
- Implementation of
Parser::flat_map
- Implementation of
Parser::into
- Implementation of
Parser::map
- Implementation of
Parser::map_opt
- Implementation of
Parser::map_res
- Implementation of
Parser::or
- A saturating iterator for usize.
- Indicates that the input data is streaming: more data may be available later
Enums§
- Indicates whether a comparison was successful, an error, or if more data was needed
- The
Err
enum indicates the parser was not successful - Contains information on needed data if a parser returned
Incomplete
Traits§
- Helper trait for types that can be viewed as a byte slice
- Transforms common types to a char for basic token parsing
- Abstracts comparison operations
- Equivalent From implementation to avoid orphan rules in bits parsers
- Abstracts something which can extend an
Extend
. Used to build modified input slices inescaped_transform
- Look for a substring in self
- Look for a token in self
- Helper trait to convert a parser’s result to a more manageable type
- Helper trait to show a byte slice as a hex dump
- Parser input types must implement this trait
- Specifies the behaviour when a parser encounters an error that could be due to partial ata
- Parser mode: influences how combinators build values
- Abstractions for range-like types.
- Useful functions to calculate the offset between slices and show a hexdump of a slice
- Trait Defining the parser’s execution
- Used to integrate
str
’sparse()
method - All nom parsers implement this trait
- Helper trait to convert numbers to usize.
Type Aliases§
- Holds the result of parsing functions
- Parser result type