From d7d3e9ed8a6f6c2a116fb82ac3c891d3cae0a482 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Wed, 15 Jul 2020 16:45:44 -0400 Subject: ... --- test.toc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test.toc') diff --git a/test.toc b/test.toc index 5fcc2a5..a47bab6 100644 --- a/test.toc +++ b/test.toc @@ -1,7 +1,20 @@ +main ::= fn() { + x: &a; + k := x.foo; +} +main(); #include "std/io.toc"; +a ::= struct { + foo: File; +} + + +/* + #include "std/io.toc", io; #include "std/types.toc"; + write_type ::= fn(f : &File, t :: Type) { k ::= t._kind; use TypeKind; @@ -168,3 +181,4 @@ main(); Point2D ::= struct(t :: Type) { x, y : t; } +*/ -- cgit v1.2.3