repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of github.com:dopefishh/cc1516
[cc1516.git]
/
examples
/
codeGen.spl
diff --git
a/examples/codeGen.spl
b/examples/codeGen.spl
index
e92260f
..
4062fb6
100644
(file)
--- a/
examples/codeGen.spl
+++ b/
examples/codeGen.spl
@@
-33,6
+33,9
@@
main() {
// //Bool y1 = isEmpty(x2); //gives weird type error, not sure why
// isEmpty(x2);
[Int] x1 = 8 : 2 : [];
- isE(True).hd;
- return x1.hd;
+ (Bool, Int) z = (True, 2);
+ var y = z.fst;
+ var x = (True, 5) : (False,0) : [];
+ x.hd.snd = 8;
+ return;
}