summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-05-23 00:54:14 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-05-23 00:54:14 -0400
commit38da18a86693f4ee46952b49601438f8c73ef34c (patch)
tree66274c9b6519876629bd02045684ecfe85bf3023 /test.toc
parentf7de68fe80850c4058eb2c1f123ca0dad54abe9b (diff)
started removing block ret_expr
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc12
1 files changed, 4 insertions, 8 deletions
diff --git a/test.toc b/test.toc
index e7f8ecd..9f27d1c 100644
--- a/test.toc
+++ b/test.toc
@@ -1,14 +1,10 @@
main ::= fn() {
- nums : []int;
- l := slice_to_ll(nums);
+ a ::= foo(3);
+ b := foo(5);
}
-slice_to_ll ::= fn(t::=, slice: []t) use ll: LinkedList(t) {
-}
-
-LinkedList ::= struct (of :: Type) {
- head: of;
- tail: &LinkedList(of);
+foo ::= fn(x: int) int {
+ return 3*x;
}