X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=examples%2FcodeGen.spl;h=9f45dfc79510394461251501f86d4fe816d07454;hb=5133b2b81d244d3f05930481366082a00fc95c3b;hp=5b366ba3ca59b54684aa0ee0b04c132b2e2200b2;hpb=a5c9b65860f9af03a7c999f7abd6ab5f12f63523;p=cc1516.git diff --git a/examples/codeGen.spl b/examples/codeGen.spl index 5b366ba..9f45dfc 100644 --- a/examples/codeGen.spl +++ b/examples/codeGen.spl @@ -3,14 +3,8 @@ f(x, y) { } 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, 2); - f(x1, 2); - return x1; + var x2 = f(x1, 2); + x1 = 5; + return x2; }