diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -1,10 +1,16 @@ +n ::= nms { + x := 1; + counter ::= fn() int { x += 1; x }; +}; + main ::= fn() { - x ::= nms { - f ::= fn() { - - }; - }; - // x.g(); -};
\ No newline at end of file + a := counter(); + b := counter(); + counter(); + c := counter(); + puti(a); + puti(b); + puti(c); +}; |