summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc20
1 files changed, 7 insertions, 13 deletions
diff --git a/test.toc b/test.toc
index 88b4e63..8eed5b7 100644
--- a/test.toc
+++ b/test.toc
@@ -1,19 +1,13 @@
-// io ::= nms {
-// #include "std/io.toc";
-// };
-
-FOO ::= fn(t::Type) Type {
- &ll(int)
+io ::= nms {
+#include "std/io.toc";
};
-ll ::= struct(t::Type) {
- head: t;
- tail: FOO(t);
+foo ::= fn() <int, int> {
+ 3, 5
};
main ::= fn() {
- l:ll(int);
- m:ll(i16);
- x::=#alignof(l);
- y::=#alignof(m);
+ _, x := foo();
+ y, _ := foo();
+ io.puti(x); io.puti(y);
}; \ No newline at end of file