Crate token_parser[][src]

Expand description

Some utilities for parsing some format based on nested lists into arbitrary data structures. It’s also meant to be used as a backend for parsers.

Macros

derive_symbol_parsable

Derives Parsable from symbol for types which implement FromStr.

Structs

Parser

The token parser to parse the units into wanted types.

Enums

Error

The error type for token parsing.

Unit

Some unit, which represents an intermediate state.

Traits

Parsable

This trait needs to be implemented for every struct which can be parsed using the token parser.

Type Definitions

Result

The result type for token parsing.

Derive Macros

Parsable

Derive the Parsable trait by parsing all unnamed fields in order using the Parsable trait.

SymbolParsable

Derive the Parsable trait by parsing all unnamed fields using the FromStr trait.