repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
FunStmt and Stmts added
[cc1516.git]
/
examples
/
codeGen.spl
diff --git
a/examples/codeGen.spl
b/examples/codeGen.spl
index
1f8cbfd
..
30fe668
100644
(file)
--- 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;
+}