X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=examples%2FcodeGen.spl;h=30fe6683b94ce8d070fa5a9d48479f07b6ac6219;hb=8472f6d9507fd0116ac85d02e8ed5566ef8e7980;hp=1f8cbfdbf7e2964a0bcd1c610982bc2af1d64553;hpb=2dfaf554d3b448567e41a140d46a27f6dfb5d901;p=cc1516.git diff --git a/examples/codeGen.spl b/examples/codeGen.spl index 1f8cbfd..30fe668 100644 --- a/examples/codeGen.spl +++ b/examples/codeGen.spl @@ -1,4 +1,10 @@ +f(x, y) { + return x; +} + main() { - var x = 3; - return 4 + 2 + x; -} \ No newline at end of file + Int x1 = 1; + x1 = 5; + f(x1, 2); + return x1; +}