summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc14
1 files changed, 8 insertions, 6 deletions
diff --git a/test.toc b/test.toc
index 40e787f..1323f3f 100644
--- a/test.toc
+++ b/test.toc
@@ -1,8 +1,10 @@
-n ::= nms {
- a := 17;
-}
-
main ::= fn() {
- use n;
- x := a;
+ Point ::= struct {
+ x: int;
+ y, z: int;
+ }
+ p: Point;
+ p.x = 6;
+ p.y = 13;
+ p.z = 43902;
}