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 e9ab36b..69794b5 100644
--- a/test.toc
+++ b/test.toc
@@ -1,12 +1,18 @@
#include "std/io.toc", io;
-#include "std/io.toc", super;
-#include "std/io.toc", great;
+#include "std/io.toc", foo;
+#include "std/io.toc";
-main ::= fn() {
- io.puti(7);
- io.puts("Hello!");
- super.puts("hey");
- great.puti(1232);
+a ::= nms {
+ b ::= nms {
+ x := 3;
+ };
+ f ::= fn() { b.x += 1; io.puti(b.x); foo.puti(b.x); puti(b.x);
+ };
};
-main(); \ No newline at end of file
+main ::= fn() {
+ a.f();
+ a.f();
+ a.f();
+
+}; \ No newline at end of file