summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-08 11:40:01 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-08 11:40:01 -0400
commitbe90170db8a405e16bd864bfe47ef757be0e90bb (patch)
treec1cf8bdcf4b7db9ecf4156367d47eae0df7aa085 /test.toc
parent13fe154980092cdc79c0df6922b164eb2137f3e3 (diff)
cleaned up table_index code
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc16
1 files changed, 8 insertions, 8 deletions
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