From a89d6c82e981fec7d6e4c975e083d2b9e04467ad Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Mon, 1 May 2023 07:56:42 -0700 Subject: 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. --- guile-compat/compat.scm | 2 +- guile-compat/csc.fish | 5 +++-- guile-compat/lib/csc | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'guile-compat') 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 -- cgit v1.3.1