diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-05-23 00:54:14 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-05-23 00:54:14 -0400 |
commit | 38da18a86693f4ee46952b49601438f8c73ef34c (patch) | |
tree | 66274c9b6519876629bd02045684ecfe85bf3023 /test.toc | |
parent | f7de68fe80850c4058eb2c1f123ca0dad54abe9b (diff) |
started removing block ret_expr
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -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; } |