aboutsummaryrefslogtreecommitdiff
path: root/test.fun
diff options
context:
space:
mode:
Diffstat (limited to 'test.fun')
-rw-r--r--test.fun29
1 files changed, 6 insertions, 23 deletions
diff --git a/test.fun b/test.fun
index cb06834..0cf1654 100644
--- a/test.fun
+++ b/test.fun
@@ -1,25 +1,8 @@
-#inc <str.fun>
+test :-: u32 : u32 : u32
+a b : * a b
-## TODO: Some kind of caching idea (memoizing?)
-## TODO: Ref/deref memory aread for GC
+text :-: [u8]
+: "hallo"
-end? [u8] -> u0
-end? arr : not (first arr)
-
-## = [u8] [u8] -> u0
-## = a b : cond
-## | || (not end? a) (not end? b) : 0
-## | = first a first b : = rest a rest b
-
-text u32 -> [u8]
-text a : "hallo"
-
-test u32 u32 -> u32
-test a b : * a b
-
-## fact u32 -> u32
-## fact n : match
-## | ? zero? : 1
-## | _ : * n (fact (- n 1))
-##
-## main : fact (test 2 3)
+main :+: IO
+: log text