X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=examples%2FcodeGen.spl;h=30fe6683b94ce8d070fa5a9d48479f07b6ac6219;hb=8472f6d9507fd0116ac85d02e8ed5566ef8e7980;hp=9982b4b249e8546798b0370f5526ec8616c7e504;hpb=6758e36a62b15fea8b7505f58b829ff4ff0ba94e;p=cc1516.git diff --git a/examples/codeGen.spl b/examples/codeGen.spl index 9982b4b..30fe668 100644 --- a/examples/codeGen.spl +++ b/examples/codeGen.spl @@ -1,16 +1,10 @@ -f(x) { - Int y = 2; - return 4; +f(x, y) { + return x; } main() { -// Int x1 = 3; -// Char x2 = '\n'; -// Bool x3 = True; -// (Int, Char) x4 = (4, '\n'); -// [Bool] x5 = True : False : True : True : []; -// [Int] x1 = 42 : []; Int x1 = 1; - Int x2 = f(x1); + x1 = 5; + f(x1, 2); return x1; }