Have optimizer ignore #%top expressions.
This commit is contained in:
parent
80fba7f42d
commit
3494b89f25
|
@ -76,7 +76,7 @@
|
||||||
(pattern (~and ((~or #%provide #%require begin-for-syntax define-syntaxes module module*)
|
(pattern (~and ((~or #%provide #%require begin-for-syntax define-syntaxes module module*)
|
||||||
. _)
|
. _)
|
||||||
opt))
|
opt))
|
||||||
(pattern (~and (~or (quote _) (quote-syntax _) :id) opt)))
|
(pattern (~and (~or (quote _) (quote-syntax _) (#%top . _) :id) opt)))
|
||||||
|
|
||||||
(define (optimize-top stx)
|
(define (optimize-top stx)
|
||||||
(parameterize ([optimize (syntax-parser [e:opt-expr* #'e.opt])])
|
(parameterize ([optimize (syntax-parser [e:opt-expr* #'e.opt])])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user