summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc19
1 files changed, 7 insertions, 12 deletions
diff --git a/test.toc b/test.toc
index 4274d97..341642f 100644
--- a/test.toc
+++ b/test.toc
@@ -1,16 +1,11 @@
arr ::= pkg "std/arr";
io ::= pkg "std/io";
main ::= fn() {
-#include "incstuff.toc";
- {
- #include "incstuff.toc";
-
- }
- s : [1]char;
- s[0] = (arr.arr_len(x) as char) + '0';
- io.puts(s[:]);
- for c := x.data {
- s[0] = c;
- io.puts(s[:]);
- }
+ x: arr.Arr([]char);
+ arr.arr_add(&x, "HI");
+ arr.arr_add(&x, "Hello");
+ arr.arr_add(&x, "How's");
+ arr.arr_add(&x, "it");
+ arr.arr_add(&x, "going");
+ io.puts_arr(x);
}; \ No newline at end of file