repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
return dingen en local vars werken
[cc1516.git]
/
examples
/
codeGen.spl
diff --git
a/examples/codeGen.spl
b/examples/codeGen.spl
index
658ea6e
..
5b366ba
100644
(file)
--- a/
examples/codeGen.spl
+++ b/
examples/codeGen.spl
@@
-1,7
+1,16
@@
-f() {
-
return 2
;
+f(
x, y
) {
+
return x
;
}
}
+
main() {
main() {
- var x = 3;
- return 1 + 2 + x + f();
+// 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;
}
}