From acc561366f3fe6ec0377103f52ef0f7e923711c9 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Mon, 1 Aug 2022 19:35:19 -0700 Subject: 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. --- csc/test-main.csc | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 csc/test-main.csc (limited to 'csc/test-main.csc') 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) -- cgit v1.3.1