FunStmt and Stmts added
[cc1516.git] / examples / codeGen.spl
index 1f8cbfd..30fe668 100644 (file)
@@ -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;
+}