aboutsummaryrefslogtreecommitdiffstats
path: root/guile-compat
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 /guile-compat
parent112ce5291da35e54c38c4ff1d7a2408a64a98e71 (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 'guile-compat')
-rw-r--r--guile-compat/compat.scm2
-rwxr-xr-xguile-compat/csc.fish5
l---------guile-compat/lib/csc2
3 files changed, 5 insertions, 4 deletions
diff --git a/guile-compat/compat.scm b/guile-compat/compat.scm
index 5997267..0962c50 100644
--- a/guile-compat/compat.scm
+++ b/guile-compat/compat.scm
@@ -1,3 +1,3 @@
(install-r7rs!)
-(set! %load-extensions (cons ".csc" %load-extensions))
+(set! %load-extensions (append '(".scheme") %load-extensions))
(add-to-load-path (string-append (dirname (current-filename)) "/lib"))
diff --git a/guile-compat/csc.fish b/guile-compat/csc.fish
index ffda4d2..ce2820b 100755
--- a/guile-compat/csc.fish
+++ b/guile-compat/csc.fish
@@ -1,2 +1,3 @@
-#!/usr/bin/env fish
-guile -l (dirname (status --current-filename))/compat.scm $argv
+#!/usr/bin/env nix-shell
+#! nix-shell -i fish -p fish guile_3_0 rlwrap
+rlwrap guile -l (dirname (status --current-filename))/compat.scm $argv
diff --git a/guile-compat/lib/csc b/guile-compat/lib/csc
index c8a0323..c25bddb 120000
--- a/guile-compat/lib/csc
+++ b/guile-compat/lib/csc
@@ -1 +1 @@
-../../lib/csc \ No newline at end of file
+../.. \ No newline at end of file