summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc15
1 files changed, 10 insertions, 5 deletions
diff --git a/test.toc b/test.toc
index 0450b18..e7f8ecd 100644
--- a/test.toc
+++ b/test.toc
@@ -1,9 +1,14 @@
-#include "test.toc";
-foo ::= fn() int {
- 5
+main ::= fn() {
+ nums : []int;
+ l := slice_to_ll(nums);
}
-main ::= fn() {
- foo();
+slice_to_ll ::= fn(t::=, slice: []t) use ll: LinkedList(t) {
}
+
+LinkedList ::= struct (of :: Type) {
+ head: of;
+ tail: &LinkedList(of);
+}
+