summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc13
1 files changed, 11 insertions, 2 deletions
diff --git a/test.toc b/test.toc
index bdb1505..6c0920d 100644
--- a/test.toc
+++ b/test.toc
@@ -1,4 +1,13 @@
+p ::= fn() [3]int {
+ x: [3]int;
+ x[0] = 16;
+ x
+};
+
+f ::= fn() int {
+ a := p();
+ a[0]
+};
main ::= fn() {
- foo ::= fn(){
- };
+ a ::= f();
};