diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-07 15:52:11 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-07 15:52:11 -0500 |
commit | 2ffd5ed0334788b444922357873cd4bfc342f0e9 (patch) | |
tree | aa59a2488675437b1e966ae8f2f100d887c9e8e0 /test.toc | |
parent | eee36346d65080feee7d70b8ecc7a39f83f5f3eb (diff) |
new ident system almost working
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 |