summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc18
1 files changed, 9 insertions, 9 deletions
diff --git a/test.toc b/test.toc
index 11e2a24..88b4e63 100644
--- a/test.toc
+++ b/test.toc
@@ -2,18 +2,18 @@
// #include "std/io.toc";
// };
-// p ::= struct(x::Type,y::=3) {
-// b:int;
-// };
-
-foo ::= fn(x::int) Type {
- [x]int
+FOO ::= fn(t::Type) Type {
+ &ll(int)
};
-z ::= fn(a::=,b:foo(a)) {
+ll ::= struct(t::Type) {
+ head: t;
+ tail: FOO(t);
};
main ::= fn() {
- n:foo(3);
- z(n);
+ l:ll(int);
+ m:ll(i16);
+ x::=#alignof(l);
+ y::=#alignof(m);
}; \ No newline at end of file