Module syn::synom
[−]
[src]
Parsing interface for parsing a token stream into a syntax tree node.
All syntax tree nodes that can be parsed from a token stream need to
implement the Synom
trait. This trait is usually implemented using the
nom
-style parser combinator macros provided by Syn, but may also be
implemented without macros be using the low-level Cursor
API directly.
The following parser combinator macros are available and a Synom
parsing
example is provided for each one.
alt!
braces!
brackets!
call!
cond!
cond_reduce!
do_parse!
epsilon!
input_end!
keyword!
many0!
map!
not!
option!
parens!
punct!
reject!
switch!
syn!
tuple!
value!
This module is available if Syn is built with the "parsing"
feature.
Structs
ParseError |
Error returned when a |
Traits
Synom |
Parsing interface implemented by all types that can be parsed from a token stream. |
Type Definitions
PResult |
The result of a |