repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Function calls now clean up the arguments
[cc1516.git]
/
examples
/
codeGen.spl
diff --git
a/examples/codeGen.spl
b/examples/codeGen.spl
index
5b366ba
..
9f45dfc
100644
(file)
--- a/
examples/codeGen.spl
+++ b/
examples/codeGen.spl
@@
-3,14
+3,8
@@
f(x, y) {
}
main() {
}
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 x1 = 1;
-
Int
x2 = f(x1, 2);
-
f(x1, 2)
;
- return x
1
;
+
var
x2 = f(x1, 2);
+
x1 = 5
;
+ return x
2
;
}
}