diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-04-25 14:09:30 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-04-25 14:09:30 -0400 |
commit | 7aa21a12d1b5505ba6258f2a74ce8716e72387c3 (patch) | |
tree | b6067441f028cf42708cc065235920aefa25e980 /test.toc | |
parent | 342f08a7753495f51eb19dfee6d1b23bbddf344e (diff) |
improved #include error handling
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 23 |
1 files changed, 3 insertions, 20 deletions
@@ -1,23 +1,6 @@ -#include "std/io.toc"; -#include "std/mem.toc"; - -generate_numbers ::= fn() []int { - nums := news(int, 10); - for n, i := &nums { - *n = i*i; - } - nums -} - -hw := "hello, world!"; -nums := generate_numbers(); +#include "std/io.toc", io; +use io; main ::= fn() { - hw[0] = 'j'; - nums[5] = 183; - puts(hw); - for x := nums { - puti(x); - } - + puts("hi"); } |