Module combinators

Source
Expand description

Provides some extra parser combinators.

Functions§

err_into
Converts the error type with the From trait.
fchar
Same as nom::char but return the input type instead of the char.
fsense
Same as nom::char but return the input type instead of the char. Checks one character but doesn’t consume it.
map_res
Takes a parser and a transformation of the parser result.
pchar
Same as nom::char but return the input type instead of the char.
psense
Same as nom::char but return the input type instead of the char. Checks one character but doesn’t consume it.
separated_list_trailing0
Similiar to nom::multi::separated_list0, but allows a trailing separator.
separated_list_trailing1
Similiar to nom::multi::separated_list1, but allows a trailing separator.
track
Tracked execution of a parser.
with_code
Takes a parser and converts the error.