summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-02-26 21:19:45 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-02-26 21:19:45 -0500
commit4aeae5a6d0ecec5558b69492e489535e41b49649 (patch)
tree7bf826ae1ac4f98c6da8c3f2e4cd48d621587575 /test.toc
parentbfee5c00eed983ccf74810a366112e106226ace2 (diff)
syntax for including something into a namespace
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc12
1 files changed, 8 insertions, 4 deletions
diff --git a/test.toc b/test.toc
index ce0eac0..91b8cbc 100644
--- a/test.toc
+++ b/test.toc
@@ -1,6 +1,10 @@
-realloc ::= fn() int {
- #C("4")
-};
+#include "std/io.toc", io;
+#include "std/io.toc", super;
+#include "std/io.toc", great;
+
main ::= fn() {
- y := realloc();
+ io.puti(7);
+ io.puts("Hello!");
+ super.puts("hey");
+ great.puti(1232);
}; \ No newline at end of file