Compatibility with ≤ v6.5
This commit is contained in:
parent
bb82cfd9e4
commit
c107770f73
19
main.rkt
19
main.rkt
|
@ -72,15 +72,16 @@
|
|||
(syntax-local-value id (λ () #f))))
|
||||
(syntax->list #'(id ...)))
|
||||
(with-disappeared-uses
|
||||
(record-disappeared-uses (syntax->list #'(pvar-id ...)))
|
||||
#'(let-syntax ([pvar-id
|
||||
(make-set!-transformer
|
||||
(let ([mapping (syntax-local-value
|
||||
(quote-syntax pvar-id))])
|
||||
(make-auto-pvar (syntax-mapping-depth mapping)
|
||||
(syntax-mapping-valvar mapping))))]
|
||||
...)
|
||||
body ...))]))
|
||||
(let ()
|
||||
(record-disappeared-uses (syntax->list #'(pvar-id ...)))
|
||||
#'(let-syntax ([pvar-id
|
||||
(make-set!-transformer
|
||||
(let ([mapping (syntax-local-value
|
||||
(quote-syntax pvar-id))])
|
||||
(make-auto-pvar (syntax-mapping-depth mapping)
|
||||
(syntax-mapping-valvar mapping))))]
|
||||
...)
|
||||
body ...)))]))
|
||||
|
||||
(define-syntax auto-with-syntax
|
||||
(syntax-parser
|
||||
|
|
Loading…
Reference in New Issue
Block a user