diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 19 |
1 files changed, 6 insertions, 13 deletions
@@ -2,17 +2,10 @@ Foo ::= struct { x: u8; }; #export main ::= fn() Foo { - g ::= fn() int { 3 }; - - f: Foo; - if f.x == 0 { - f.x = g() as u8; - } elif f.x == 1 { - f.x = 2; - } elif f.x == 3 { - f.x = 17; - } else { - f.x = 112; - } - f + g ::= fn() int { 3 }; + a : [3]int; + b := a[1:3]; + b[0] = 7; + f: Foo; + f };
\ No newline at end of file |