fixed a bug in the way quote was handled

svn: r15308
This commit is contained in:
Robby Findler 2009-06-26 19:22:03 +00:00
parent 8e0e67cef4
commit d007777e2a
2 changed files with 9 additions and 4 deletions

View File

@ -25,10 +25,7 @@
(datum->syntax
(identifier-prune-lexical-context #'whatever '(#%app #%datum))
(let loop ([stx stx])
(syntax-case stx (quote)
[(quote x)
(list (quote-syntax/prune quote)
(syntax->datum #'x))]
(syntax-case stx ()
[(a . b)
(datum->syntax (identifier-prune-lexical-context #'whatever '(#%app))
(cons (loop #'a) (loop #'b))

View File

@ -639,6 +639,14 @@
(test (term (f 1 1 1 1 1)) (term 1)))
(let ()
(define-metafunction empty-language
[(ex variable_x)
variable_x
(where quote variable_x)])
(test (term (ex quote)) (term quote)))
;