pull/2/head
Matthew Butterick 8 years ago
parent 3f295b66fa
commit 90b8680bd7

@ -1,10 +1,12 @@
#lang br/quicklang
(provide read-syntax (rename-out [stacker-module-begin #%module-begin]) + *)
(provide read-syntax
(rename-out [stacker-module-begin #%module-begin])
+ *)
(define (read-syntax path port)
(strip-context
#`(module stacker3-mod br/demo/stacker3
#,@(port->list read port))))
(datum->syntax #f
`(module stacker3-mod br/demo/stacker3
,@(port->list read port))))
(define-macro (stacker-module-begin ARG ...)
#'(#%module-begin
@ -16,7 +18,6 @@
(cons (x (car xs) (cadr xs)) (cddr xs))))
null (list ARG ...))))))
(module+ test
(require rackunit)
(check-equal? (with-output-to-string (λ () (dynamic-require "stacker3-test.rkt" #f))) "36"))
Loading…
Cancel
Save