summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc18
1 files changed, 6 insertions, 12 deletions
diff --git a/test.toc b/test.toc
index a23df05..8c4d07f 100644
--- a/test.toc
+++ b/test.toc
@@ -1,17 +1,11 @@
-#include "std/io.toc";
-
-Point ::= struct {
+Point ::= struct {
x, y: int;
}
-foo ::= fn() []char {
- return "y";
-}
-
main ::= fn() {
- p: Point;
- p["x"] = 5;
- p[foo()] = 17;
- puti(p["x"]);
- puti(p.y);
+ use p: Point;
+ p.x = 15;
+ p.y = 18;
+ x += 5;
+ x := 18;
}