summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-23 00:39:58 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-23 00:39:58 -0400
commit65d502fca7400ebcbe3134d730bf8570f7756c42 (patch)
tree69f204da572731df1493f36df96acbeebffd9b53 /test.toc
parent8e5951cefcffcd74674233637c07137c6f60ecc1 (diff)
more use
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc13
1 files changed, 4 insertions, 9 deletions
diff --git a/test.toc b/test.toc
index 2b44207..40e787f 100644
--- a/test.toc
+++ b/test.toc
@@ -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;
}