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:
8
sexc.scm
8
sexc.scm
@@ -4,6 +4,7 @@
|
||||
(chicken base)
|
||||
(chicken condition) ; handle-exceptions
|
||||
(chicken file)
|
||||
(chicken module)
|
||||
(chicken plist)
|
||||
(chicken pretty-print)
|
||||
(chicken process)
|
||||
@@ -20,6 +21,13 @@
|
||||
srfi-1 ; list routines
|
||||
utils)
|
||||
|
||||
(export
|
||||
main
|
||||
|
||||
;; for the tests
|
||||
args-before-separator args-after-separator
|
||||
dependency-rule spell-stdout-output)
|
||||
|
||||
;;; Main function facilities
|
||||
|
||||
(define opts-grammar
|
||||
|
||||
Reference in New Issue
Block a user