diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-20 18:57:18 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-10-20 18:57:18 -0400 |
commit | cc94b260b2ee57ee0f9dfd86baf58cecdeb470e9 (patch) | |
tree | 0a31685ac8b5fcd58f8aeafd6b328a0b0f1f2a08 /test.toc | |
parent | dee2f7e0de8f3521ec77bd60fd48094f7ed3c729 (diff) |
fixing eval
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -1,24 +1,25 @@ // #C("#include <stdio.h> // #define kasfdhkjasdfhjk "); -puti @= fn(x: int) { +// puti @= fn(x: int) { // #C("printf(\"%ld\\n\", (long)x)"); -}; +// }; foo @= fn() int { - X := new([100]int); + // X := new([100]int); i := 0; while i < 100 { - (*X)[i] = i; - i = i + 1; - } - total := 0; - i = 0; - while i < 100 { - total = total + (*X)[i]; + // (*X)[i] = i; i = i + 1; } - total + i + // total := 0; + // i = 0; + // while i < 100 { + // total = total + (*X)[i]; + // i = i + 1; + // } + // total }; main @= fn() { |