In the documentation for define-macro, use syntax-object instead of (syntax result-expr), as that's the way it is documented below

pull/2/head
Georges Dupéron 8 years ago
parent 9e8135ee05
commit 229ed0c70d

@ -205,7 +205,7 @@ Define a function that behaves differently depending on how many arguments are s
(define-macro id (syntax other-id)) (define-macro id (syntax other-id))
(define-macro id (lambda (arg-id) result-expr ...+)) (define-macro id (lambda (arg-id) result-expr ...+))
(define-macro id transformer-id) (define-macro id transformer-id)
(define-macro id (syntax result-expr)) (define-macro id syntax-object)
(define-macro (id pat-arg ...) expr ...+) (define-macro (id pat-arg ...) expr ...+)
]] ]]
Create a macro using one of the subforms above, which are explained below: Create a macro using one of the subforms above, which are explained below:

Loading…
Cancel
Save