changed static syntax class back to perform post-checks
This commit is contained in:
parent
4f41e3f79d
commit
6c42fe2766
|
@ -70,12 +70,12 @@
|
||||||
#:attributes (value)
|
#:attributes (value)
|
||||||
#:description name
|
#:description name
|
||||||
#:commit
|
#:commit
|
||||||
(pattern (~and x:id
|
(pattern x:id
|
||||||
(~fail #:unless (syntax-transforming?)
|
#:fail-unless (syntax-transforming?)
|
||||||
"not within the extent of a macro transformer")
|
"not within the dynamic extent of a macro transformation"
|
||||||
(~bind [value (syntax-local-value #'x (lambda () notfound))])
|
#:attr value (syntax-local-value #'x (lambda () notfound))
|
||||||
(~fail #:when (eq? (attribute value) notfound))
|
#:fail-when (eq? (attribute value) notfound) #f
|
||||||
(~fail #:unless (pred (attribute value))))))
|
#:fail-unless (pred (attribute value)) #f))
|
||||||
|
|
||||||
#|
|
#|
|
||||||
(define-syntax-class expr
|
(define-syntax-class expr
|
||||||
|
|
Loading…
Reference in New Issue
Block a user