v6.3-exception
Matthew Butterick 6 years ago
parent 900a7d08f5
commit 4b5098415d

@ -28,8 +28,9 @@
#'(ID ARG ...)) #'(ID ARG ...))
(define (read-syntax src ip) (define (read-syntax src ip)
(define pt (parse (λ () (lex ip)))) (define token-thunk (λ () (lex ip)))
(define parse-tree (parse token-thunk))
(strip-context (strip-context
(with-syntax ([PT pt]) (with-syntax ([PT parse-tree])
#'(module mod-name simplex-demo #'(module mod-name simplex-demo
PT)))) PT))))
Loading…
Cancel
Save