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.

This module is available if Syn is built with the "parsing" feature.

Structs

ParseError

Error returned when a Synom parser cannot parse the input tokens.

Traits

Synom

Parsing interface implemented by all types that can be parsed from a token stream.

Type Definitions

PResult

The result of a Synom parser.