added hack to allow some comments in LP

svn: r14875

original commit: a1f9a6f1abc5dc278fbe43b25d9d7c547665f1c6
This commit is contained in:
Matthias Felleisen 2009-05-19 22:23:17 +00:00
parent 7146e7130c
commit bb858b6a3f

View File

@ -6,6 +6,14 @@
(require (for-syntax scheme/base syntax/boundmap scheme/list syntax/kerncase
syntax/strip-context))
;; --- MF: bad hack for getting rid of comments
(provide code:comment)
(define-syntax (code:comment stx)
(if (eq? (syntax-local-context) 'expression)
(syntax (void))
(syntax (define (f x) x))))
;; --- MF
(begin-for-syntax
(define first-id #f)
(define main-id #f)