Newer
Older
# 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);