aboutsummaryrefslogtreecommitdiffstats
path: root/csc/test-main.csc
diff options
context:
space:
mode:
authorRose Hogenson <rhogenson@posteo.net>2022-08-01 19:35:19 -0700
committerRose Hogenson <rhogenson@posteo.net>2022-08-01 19:35:19 -0700
commitacc561366f3fe6ec0377103f52ef0f7e923711c9 (patch)
treed7a19cfbad78a69ebea71b27302e708c0655863d /csc/test-main.csc
parent99ce19a8053a93457885f32ec54c1c5b7c1961c1 (diff)
downloadchromatopelma-acc561366f3fe6ec0377103f52ef0f7e923711c9.tar.zst
Modify the project structure.
Now the lib directory contains what will eventually end up on the user's /usr/lib/csc. When I write make install, it will copy all of the .csc files from lib into the destination lib directory. This means I can start working on the standard library in lib/scheme.
Diffstat (limited to 'csc/test-main.csc')
-rw-r--r--csc/test-main.csc18
1 files changed, 0 insertions, 18 deletions
diff --git a/csc/test-main.csc b/csc/test-main.csc
deleted file mode 100644
index 184d069..0000000
--- a/csc/test-main.csc
+++ /dev/null
@@ -1,18 +0,0 @@
-(import (scheme base)
- (only (csc testing)
- test-main)
- (only (scheme eval)
- environment))
-
-
-(define (filename->library f)
- (list 'csc (string->symbol (substring f 0 (- (string-length f) 4)))))
-
-
-; Guile's load function allows import forms, but by a strict reading of R7RS,
-; load can only handle expressions and definitions. I'm working around this by
-; defining each test as a library, and using the environment procedure to load
-; the libraries at runtime. Somehow this should be more portable.
-(apply environment
- (map filename->library (cdr (command-line))))
-(test-main)