summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc8
1 files changed, 7 insertions, 1 deletions
diff --git a/test.toc b/test.toc
index c278703..d7654e3 100644
--- a/test.toc
+++ b/test.toc
@@ -1,5 +1,11 @@
-io ::= pkg "std/io";
+import ::= fn(x :: []char) &Package {
+ p ::= pkg x;
+ p_ptr ::= new(Package);
+ *p_ptr = p;
+ p_ptr
+};
main ::= fn() {
+ io ::= import("std/io");
io.puts("Hello, world!");
}; \ No newline at end of file