diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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); +} + |