Crate anpa

Crate anpa 

Source

Modules§

charlike
combinators
core
findbyte
macros
needle
number
parsers
prefix
slicelike
whitespace

Macros§

choose
Create a parser that takes the result of a parser, and returns different parsers depending on the provided conditions.
create_parser
Shorthand for creating a parser.
create_parser_trait
Create a new parser trait with a concrete input type for cleaner APIs.
defer_parser
Shorthand for creating a deferred parser. This is mandatory when creating recursive parsers.
greedy_or
Variadic version of greedy_or, where the result of the parser with the most consumed input will be returned.
item_matches
Variadic parser that succeeds if the next item matches the provided patterns. Note that unlike matches!, this macro accepts multiple patterns.
left
Variadic version of left, where only the leftmost parser’s result will be returned.
map
Variadic version of map, where all provided parsers must succeed.
map_if
Variadic version of map_if, where all provided parsers must succeed.
or
Variadic version of or.
or_diff
Variadic version of or_diff.
or_diff_no_partial
Variadic version of or_diff_no_partial.
or_no_partial
Variadic version of or_no_partial.
pure
Create a parser that successfully returns x.
right
Variadic version of right, where only the rightmost parser’s result will be returned.
skip
Alternative to the skip parser that inlines the argument into the parser.
take
Alternative to the take parser that inlines the argument into the parser.
tuplify
Convert a number of parsers to a single parser producing a tuple with all the results.
until
Alternative to the until parser that inlines the argument into the parser.
variadic
A helper macro to generate variadic macros using repeated application of the rightmost argument of a binary function.