forked from alex-eg/sex
make each compiler module one file, built once
A module was a body plus a (module ...) wrapper naming its exports, and the wrapper came in up to three copies: the root's, a test one that exported everything, and sextest's, each recompiling the same body. csc -module makes a file a module by itself, with export forms in its body, so the wrappers are gone. tests/ and tools/sextest/ link what the root built, finding it on the repository path; the tests see what a module exports, and the names only they need are exported as such.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
scheme
|
||||
(scheme base) ; make-parameter
|
||||
(chicken base)
|
||||
(chicken module)
|
||||
(chicken string)
|
||||
(chicken syntax)
|
||||
brev-separate ; fn, flatten
|
||||
@@ -16,6 +17,14 @@
|
||||
types ; array-bound?, named-arg?
|
||||
utils)
|
||||
|
||||
(export
|
||||
emit-c
|
||||
sex-line-directives
|
||||
|
||||
;; for the tests
|
||||
atom-to-fmt-c unkebabify type-convert-to-c
|
||||
process-toplevel-form walk-expr walk-type walk-var walk-fn-def walk-struct)
|
||||
|
||||
;;; egg `tree' not ported to CHICKEN 6 yet
|
||||
(define (tree-map f tree)
|
||||
(cond ((null? tree) (list))
|
||||
|
||||
Reference in New Issue
Block a user