Expand description
Parser combinator library.
Macros§
- Macro to define a parser for one or more string literals, mapping the results.
- Macro to define a custom parser using a
match
inspired parse tree syntax.
Structs§
- An iterator that lazily parses the input using the provided parser.
Enums§
- Error type returned by
Parser::parse
.
Traits§
- Trait for types that have a canonical parser.
- Parser trait.
Functions§
- Parser that consumes a single byte.
- Parser that consumes a single byte in the supplied range.
- Parser that consumes no input and always succeeds, returning the provided value.
- Parser which matches the end of the input.
- Parser which matches newlines or the end of the input.
- Parser for
i8
values. - Parser for
i16
values. - Parser for
i32
values. - Parser for
i64
values. - Parser for
i128
values. - Parser that consumes no input and always succeeds, returning
()
. - Parser for numbers in the supplied range.
- Attempt to parse using a list of parsers.
- Parser for substrings consisting of bytes matching the provided function.
- Parser for non-empty substrings consisting of bytes matching the provided function.
- Parser for
u8
values. - Parser for
u16
values. - Parser for
u32
values. - Parser for
u64
values. - Parser for
u128
values.
Type Aliases§
Result
type returned byParser::parse
.