--- a/progs/fun/fun_llvm.sc Wed May 29 13:25:30 2024 +0100
+++ b/progs/fun/fun_llvm.sc Thu Sep 19 15:47:33 2024 +0100
@@ -41,8 +41,12 @@
// ./a.out
-import $file.fun_tokens, fun_tokens._
-import $file.fun_parser, fun_parser._
+//> 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._
// for generating new labels
@@ -267,7 +271,6 @@
}
}
-print("%d\n", i)
val prelude = """
@.str = private constant [4 x i8] c"%d\0A\00"
@@ -360,6 +363,7 @@
*/
+/*
factC(6, x => x)
factC(6, x => {println(s"The final Result is $x") ; 0})
factC(6, _ + 1)
@@ -373,4 +377,5 @@
def fibC(n: Int, ret: Int => Int) : Int = {
if (n == 0 || n == 1) ret(1)
else fibC(n - 1, x => fibC(n - 2, y => ret(x + y)))
-}
\ No newline at end of file
+}
+*/