diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -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 |