summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc20
1 files changed, 14 insertions, 6 deletions
diff --git a/test.toc b/test.toc
index e5ca1fa..11e2a24 100644
--- a/test.toc
+++ b/test.toc
@@ -1,11 +1,19 @@
-io ::= nms {
-#include "std/io.toc";
+// io ::= nms {
+// #include "std/io.toc";
+// };
+
+// p ::= struct(x::Type,y::=3) {
+// b:int;
+// };
+
+foo ::= fn(x::int) Type {
+ [x]int
};
-p ::= struct(x::Type,y::=3) {
- b:int;
+z ::= fn(a::=,b:foo(a)) {
};
+
main ::= fn() {
-z:p(int);
-x:[z.y]z.x;
+ n:foo(3);
+ z(n);
}; \ No newline at end of file