Next: , Previous: , Up: expander   [Index]


15.5 Syntax clauses helpers

When writing definition macros similar to define-record-type it is quite useful to include in the syntax “clauses” that optionally specify the behaviour of the defined thing. A list of clauses is a syntax object with the format:

((?identifier ?thing ...) ...)

in which ?identifier is meant to be an auxiliary syntax (as defined by define-auxiliary-syntaxes or define-syntax) and the optional ?thing arguments can represent any symbolic expression. The functions documented in this section help in validating and processing such clauses.