Have optimizer ignore #%top expressions.

original commit: 3494b89f25525db0b848c8da5bb21db382578a2f
This commit is contained in:
Vincent St-Amour 2013-11-08 16:19:16 -05:00
parent 08adb59b66
commit 89d248332c

View File

@ -76,7 +76,7 @@
(pattern (~and ((~or #%provide #%require begin-for-syntax define-syntaxes module module*)
. _)
opt))
(pattern (~and (~or (quote _) (quote-syntax _) :id) opt)))
(pattern (~and (~or (quote _) (quote-syntax _) (#%top . _) :id) opt)))
(define (optimize-top stx)
(parameterize ([optimize (syntax-parser [e:opt-expr* #'e.opt])])