Crate teleparse_macros

source ·
Expand description

§teleparse-macros

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

Macros§

Attribute Macros§

  • Derive AbstractSyntaxTree from a struct with unnamed fields or an enum. This is not a derive macro because it’s internal
  • Transform an enum into a token type (a lexicon)
  • Transform an enum or struct into a parse tree node, as well as deriving the production rule (the AST nodes)

Derive Macros§

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