The Little Book of Rust Macros
1.
Macros, A Methodical Introduction
1.1.
Syntax Extensions
1.1.1.
Source Analysis
1.1.2.
Macros in the AST
1.1.3.
Expansion
1.2.
macro_rules!
1.3.
Minutiae
1.3.1.
Captures and Expansion Redux
1.3.2.
Hygiene
1.3.3.
Non-Identifier Identifiers
1.3.4.
Debugging
1.3.5.
Scoping
1.3.6.
Import/Export
2.
Macros, A Practical Introduction
3.
Patterns
3.1.
Callbacks
3.2.
Incremental TT Munchers
3.3.
Internal Rules
3.4.
Push-Down Accumulation
3.5.
Repetition Replacement
3.6.
Trailing Separators
3.7.
TT Bundling
3.8.
Visibility
3.9.
Provisional
4.
Building Blocks
4.1.
AST Coercion
4.2.
Counting
4.3.
Enum Parsing
5.
Annotated Examples
5.1.
Ook!
Light (default)
Rust
Coal
Navy
Ayu
The Little Book of Rust Macros
Patterns
Parsing and expansion patterns.