summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-04-25 14:09:30 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-04-25 14:09:30 -0400
commit7aa21a12d1b5505ba6258f2a74ce8716e72387c3 (patch)
treeb6067441f028cf42708cc065235920aefa25e980 /test.toc
parent342f08a7753495f51eb19dfee6d1b23bbddf344e (diff)
improved #include error handling
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc23
1 files changed, 3 insertions, 20 deletions
diff --git a/test.toc b/test.toc
index 2433499..2a171ed 100644
--- a/test.toc
+++ b/test.toc
@@ -1,23 +1,6 @@
-#include "std/io.toc";
-#include "std/mem.toc";
-
-generate_numbers ::= fn() []int {
- nums := news(int, 10);
- for n, i := &nums {
- *n = i*i;
- }
- nums
-}
-
-hw := "hello, world!";
-nums := generate_numbers();
+#include "std/io.toc", io;
+use io;
main ::= fn() {
- hw[0] = 'j';
- nums[5] = 183;
- puts(hw);
- for x := nums {
- puti(x);
- }
-
+ puts("hi");
}