12 Macros

+Macros in The Racket Guide introduces Macros.

See Syntax Model for general information on how programs are parsed. In particular, the subsection Expansion Steps describes how parsing triggers macros, and Transformer Bindings describes how macro transformers are called.

    12.1 Pattern-Based Syntax Matching

    12.2 Syntax Object Content

    12.3 Syntax Object Bindings

    12.4 Syntax Transformers

      12.4.1 require Transformers

      12.4.2 provide Transformers

      12.4.3 Keyword-Argument Conversion Introspection

    12.5 Syntax Parameters

      12.5.1 Syntax Parameter Inspection

    12.6 Local Binding with Splicing Body

    12.7 Syntax Object Properties

    12.8 Syntax Taints

    12.9 Expanding Top-Level Forms

      12.9.1 Information on Expanded Modules

    12.10 File Inclusion

    12.11 Syntax Utilities

      12.11.1 Creating formatted identifiers

      12.11.2 Pattern variables

      12.11.3 Error reporting

      12.11.4 Recording disappeared uses

      12.11.5 Miscellaneous utilities