From cc94b260b2ee57ee0f9dfd86baf58cecdeb470e9 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sun, 20 Oct 2019 18:57:18 -0400 Subject: fixing eval --- test.toc | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'test.toc') diff --git a/test.toc b/test.toc index d182a0f..8b5c7fc 100644 --- a/test.toc +++ b/test.toc @@ -1,24 +1,25 @@ // #C("#include // #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() { -- cgit v1.2.3