aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRose Hogenson <rhogenson@posteo.net>2023-05-01 07:56:42 -0700
committerRose Hogenson <rhogenson@posteo.net>2023-05-01 07:56:42 -0700
commita89d6c82e981fec7d6e4c975e083d2b9e04467ad (patch)
treed5445ceb797473dd45ac006c337d990e5dd6f0d4 /tests
parentFix bugs with recursive macros and empty template. (diff)
downloadchromatopelma-a89d6c82e981fec7d6e4c975e083d2b9e04467ad.tar.zst
Rewrite most of the compiler.
This represents a major step back in terms of functionality, and amount of code. The latter I think constitutes a major win. Next steps are to reimplement syntax-rules, call/cc, and call-with-values.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-main.csc21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/test-main.csc b/tests/test-main.csc
deleted file mode 100644
index c10c882..0000000
--- a/tests/test-main.csc
+++ /dev/null
@@ -1,21 +0,0 @@
-(import (scheme base)
- (only (csc testing)
- test-main)
- (only (scheme eval)
- environment))
-
-
-(define (filename->library f)
- (call-with-input-file f
- (lambda (p)
- ; (define-library <name> ...
- (cadr (read p)))))
-
-
-; 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)