summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-10-20 18:57:18 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-10-20 18:57:18 -0400
commitcc94b260b2ee57ee0f9dfd86baf58cecdeb470e9 (patch)
tree0a31685ac8b5fcd58f8aeafd6b328a0b0f1f2a08 /test.toc
parentdee2f7e0de8f3521ec77bd60fd48094f7ed3c729 (diff)
fixing eval
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc23
1 files changed, 12 insertions, 11 deletions
diff --git a/test.toc b/test.toc
index d182a0f..8b5c7fc 100644
--- a/test.toc
+++ b/test.toc
@@ -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() {