diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-08 11:40:01 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-08 11:40:01 -0400 |
commit | be90170db8a405e16bd864bfe47ef757be0e90bb (patch) | |
tree | c1cf8bdcf4b7db9ecf4156367d47eae0df7aa085 /test.toc | |
parent | 13fe154980092cdc79c0df6922b164eb2137f3e3 (diff) |
cleaned up table_index code
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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 |