summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc22
1 files changed, 14 insertions, 8 deletions
diff --git a/test.toc b/test.toc
index a1c28b1..d64d32e 100644
--- a/test.toc
+++ b/test.toc
@@ -1,16 +1,22 @@
-/*
#include "std/io.toc";
-*/
-Point ::= struct {
- x, y: int;
+
+
+n ::= nms {
+ x := 5;
}
-f ::= fn() p: Point {
- p.x = 13;
+m ::= nms {
+ x := 13;
+ y := 108;
}
main ::= fn() {
- p := f();
- use p;
+ use n;
+ use m;
+ //x = 7;
+ //puti(x);
+ puti(y);
+ y = 100;
+ puti(m.y);
}