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:
@@ -19,7 +19,11 @@
|
||||
)
|
||||
|
||||
(export/rename (process semen-process))
|
||||
(export closure-env-declaration)
|
||||
(export closure-env-declaration
|
||||
;; for the tests
|
||||
sex-fn? sex-fn-public? sex-fn-name sex-fn-arglist
|
||||
sex-fn-return-type sex-fn-prototype sex-fn-body
|
||||
walk-form macro-expand)
|
||||
|
||||
;;; for lambda extraction, docstring processing, macro expansion,
|
||||
;;; injection of module headers, i.e. all things that rearrange code
|
||||
|
||||
Reference in New Issue
Block a user