8.6 Defining simple macros
(require syntax/parse/define) |
|
Defines a macro named macro-id; equivalent to the following:
(define-syntax (macro-id stx) (syntax-parse stx [(macro-id . pattern) pattern-directive ... #'template]))
Examples: | |||||||||||||||
|
define- |
(require syntax/parse/define) |
|
(define-syntax (macro-id stx) (syntax-parse stx [(macro-id . pattern) pattern-directive ... #'template]))
Examples: | |||||||||||||||
|