X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=examples%2FcodeGen.spl;h=658ea6e3384e6d0523b299766cb34404fa9ed433;hb=d5239ed85ef46f3ada3857103dd63a1853da918c;hp=a9b650d8f7295250aebbdd479c061d1c33c9f296;hpb=4039c774404fffec583dc64a3c95c1c08e9c7deb;p=cc1516.git diff --git a/examples/codeGen.spl b/examples/codeGen.spl index a9b650d..658ea6e 100644 --- a/examples/codeGen.spl +++ b/examples/codeGen.spl @@ -1,6 +1,7 @@ +f() { + return 2; +} main() { - var x = 4; - var y = 2; - var z = x + y; - return z; -} \ No newline at end of file + var x = 3; + return 1 + 2 + x + f(); +}