8 Parsing and classifying syntax

The syntax/parse library provides a framework for describing and parsing syntax. Using syntax/parse, macro writers can define new syntactic categories, specify their legal syntax, and use them to write clear, concise, and robust macros. The library also provides a pattern-matching form, syntax-parse, which offers many improvements over syntax-case.

 (require syntax/parse)

    8.1 Quick Start

    8.2 Parsing syntax

      8.2.1 S-pattern variants

      8.2.2 H-pattern variants

      8.2.3 EH-pattern forms

      8.2.4 Pattern directives

    8.3 Pattern Variables and Attributes

    8.4 Syntax Classes

      8.4.1 Attributes

      8.4.2 Inspection tools

    8.5 Literal sets and Conventions

    8.6 Library syntax classes and literal sets

      8.6.1 Syntax classes

      8.6.2 Literal sets