summaryrefslogtreecommitdiff
path: root/test.toc
blob: 23a56e20b3d7b6c0010d049faf4200312ee67816 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
io ::= pkg "std/io";
hw ::= fn() int {
	 io.puts("Hello, world!");
	 3
};
arr ::= pkg "std/arr";
main ::= fn() {
	hw();
	x::=hw();
	x : arr.Arr(int);
	arr_add(&x, 10);
};