diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 24 |
1 files changed, 6 insertions, 18 deletions
@@ -1,19 +1,7 @@ - -// it would be nice if Arr.data.len == Arr.len (: but this will require some C code... -Arr ::= fn (t :: Type) Type { - // struct { - // data : []t; - // len, cap : int; - // } - t +getstdin ::= fn(){ + buffer : int; + while true { + while buffer { + } + } }; - -arr_add ::= fn(t :: Type, a : &Arr(t), x : t) { -}; - -main ::= fn() { - arr : Arr(int); - for i := 1..100 { - arr_add(int, &arr, 3); - } -};
\ No newline at end of file |