From be90170db8a405e16bd864bfe47ef757be0e90bb Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sun, 8 Mar 2020 11:40:01 -0400 Subject: cleaned up table_index code --- test.toc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test.toc') diff --git a/test.toc b/test.toc index 5f9f410..c0aca4b 100644 --- a/test.toc +++ b/test.toc @@ -1,10 +1,10 @@ -#include "std/io.toc", io; - -foo ::= fn(x: ..) int { - 3 -}; - main ::= fn() { - io.puti(foo(3,4,5)); + mk_arr(z=0, 0, 0); + + mk_arr ::= fn(x:int, y:int, z:int) a:[3]int { + a[0] = x; + a[1] = y; + a[2] = z; + }; + }; -main(); \ No newline at end of file -- cgit v1.2.3