Crate teleparse_macros

Source
Expand description

§teleparse-macros

These are for use with the teleparse crate and not meant to be used standalone.

Attribute Macros§

derive_lexicon
Transform an enum into a token type (a lexicon)
derive_syntax
Transform an enum or struct into a parse tree node, as well as deriving the production rule (the AST nodes)

Derive Macros§

Node
Derive common traits for AST helper nodes (stores a Node as its first thing)
ToSpan
Derive ToSpan from a type that stores a ToSpan as its first thing