summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc11
1 files changed, 9 insertions, 2 deletions
diff --git a/test.toc b/test.toc
index f0004fa..e7bd007 100644
--- a/test.toc
+++ b/test.toc
@@ -1,4 +1,11 @@
#include "std/io.toc";
-puti ::= fn() {
-}
+x ::= 3;
+
+
+main ::= fn() {
+ p ::= nms {
+ y := 5;
+ }
+ puti(p.x);
+}