Add for loops
[kaleidoscope-hs-old.git] / test.ks
diff --git a/test.ks b/test.ks
index c18328bc30c77dbf7d5536ac5cc8e5d44ebf7c15..ed421756a4fd2b9aa6d791ae7386a6f1b0beb246 100644 (file)
--- a/test.ks
+++ b/test.ks
@@ -1,3 +1,7 @@
-def foo(x y) if x > y then x + y else x - y;
-extern putchard(x);
+extern putchard(char);
+
+def printstar(n)
+       for i = 0, i < n, 1.0 in
                putchard(42);
+
+printstar(100);