Skip to content
Snippets Groups Projects
test4.kal 265 B
Newer Older
  • Learn to ignore specific revisions
  • # Compare http://llvm.org/docs/tutorial/LangImpl4.html#adding-a-jit-compiler
    4+5;
    def testfunc(x y) x + y*2;
    testfunc(4, 10);
    extern sin(x);
    extern cos(x);
    sin(1.0);
    def foo(x) sin(x)*sin(x) + cos(x)*cos(x);
    foo(4.0);
    foo(42.0);
    extern putchard(x); 
    putchard(120);