diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-07-15 16:45:44 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-07-15 16:45:44 -0400 |
commit | d7d3e9ed8a6f6c2a116fb82ac3c891d3cae0a482 (patch) | |
tree | fd0bbe359e309822926766831a683b43282cfd8e /test.toc | |
parent | ef6b1177539b51a9d1284b1546c54a57539ab643 (diff) |
...
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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; } +*/ |