summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc14
1 files changed, 14 insertions, 0 deletions
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;
}
+*/