diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-23 00:39:58 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-23 00:39:58 -0400 |
commit | 65d502fca7400ebcbe3134d730bf8570f7756c42 (patch) | |
tree | 69f204da572731df1493f36df96acbeebffd9b53 /test.toc | |
parent | 8e5951cefcffcd74674233637c07137c6f60ecc1 (diff) |
more use
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -1,13 +1,8 @@ -Point ::= struct { - x, y: int; -} - -mkpoint ::= fn(x, y: int) p: Point { - p.x = x; - p.y = y; +n ::= nms { + a := 17; } main ::= fn() { - p: Point; - use p; + use n; + x := a; } |