summaryrefslogtreecommitdiff
path: root/test.toc
blob: 9046e3a5395fa34010787f2bdd52dbef7e8411bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "std/arr.toc";
#include "std/io.toc";

do_thing ::= fn() int {
	x: Arr([]char);
	arr_add(&x, "HI");
	arr_add(&x, "Hello");
	arr_add(&x, "How's");
	arr_add(&x, "it");
	arr_add(&x, "going");
	for a := x.data {
		 puts(a);
	}
	3
};

main ::= fn() {
	 x ::= do_thing();
	 do_thing();
};