X-Git-Url: https://git.lukelau.me/?p=kaleidoscope-hs-old.git;a=blobdiff_plain;f=test.ks;h=ed421756a4fd2b9aa6d791ae7386a6f1b0beb246;hp=c18328bc30c77dbf7d5536ac5cc8e5d44ebf7c15;hb=HEAD;hpb=c67238064a9570e5c22566413b68906c9fcf39fe diff --git a/test.ks b/test.ks index c18328b..ed42175 100644 --- 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);