Crate ra_ap_tt

source ·
Expand description

tt crate defines a TokenTree data structure: this is the interface (both input and output) of macros. It closely mirrors proc_macro crate’s TokenTree.

Modules§

  • Stateful iteration over token trees.
  • A “Parser” structure for token trees. We use this when parsing a declarative macro definition into a list of patterns and templates.

Structs§

Enums§

  • Indicates whether a token can join with the following token to form a compound token. Used for conversions to proc_macro::Spacing. Also used to guide pretty-printing, which is where the JointHidden value (which isn’t part of proc_macro::Spacing) comes in useful.

Functions§