From 65d502fca7400ebcbe3134d730bf8570f7756c42 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Mon, 23 Mar 2020 00:39:58 -0400 Subject: more use --- test.toc | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'test.toc') 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; } -- cgit v1.2.3