--- a/progs/fun/fun_llvm.sc Fri Nov 29 18:59:32 2024 +0000
+++ b/progs/fun/fun_llvm.sc Mon Feb 03 12:31:28 2025 +0000
@@ -1,5 +1,5 @@
// A Small LLVM Compiler for a Simple Functional Language
-// (includes an external lexer and parser)
+// (includes a lexer and parser)
//
//
// call with
@@ -41,12 +41,12 @@
// ./a.out
-//> using toolkit 0.5.0
+// > using toolkit 0.5.0
// > using file fun_tokens.scala
// > using file fun_parser.scala
-//import $file.fun_tokens, fun_tokens._
-//import $file.fun_parser, fun_parser._
+import $file.fun_tokens, fun_tokens._
+import $file.fun_parser, fun_parser._
// for generating new labels
@@ -143,7 +143,7 @@
}
//initial continuation
-def CPSi(e: Exp) = CPS(e)(KReturn)
+def CPSi(e: Exp) = CPS(e)(KReturn(_))