summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc9
1 files changed, 5 insertions, 4 deletions
diff --git a/test.toc b/test.toc
index 74980c0..8cb0741 100644
--- a/test.toc
+++ b/test.toc
@@ -1,7 +1,8 @@
-f ::= fn(t::=, x :t) t {
- x + 1
+P ::= struct {
+ x, y:int;
};
-
main ::= fn() {
- f(13);
+ p:P;
+ x::="y";
+ p[x];
}; \ No newline at end of file