FunStmt and Stmts added
[cc1516.git] / examples / codeGen.spl
index 658ea6e..30fe668 100644 (file)
@@ -1,7 +1,10 @@
-f() {
-    return 2;
+f(x, y) {
+       return x;
 }
+
 main() {
-    var x = 3;
-    return 1 + 2 + x + f();
+       Int x1 = 1;
+    x1 = 5;
+       f(x1, 2);
+    return x1;
 }