summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
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