diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1,5 +1,20 @@ +io ::= nms { + #include "std/io.toc"; +}; -nms { +n ::= nms { x := 1; + counter ::= fn() int { x += 1; x }; }; + +main ::= fn() { + a := n.counter(); + b := n.counter(); + n.counter(); + c := n.counter(); + io.puts("Hello!"); + io.puti(a); + io.puti(b); + io.puti(c); +}; |