aboutsummaryrefslogtreecommitdiff
path: root/examples/bf.zc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bf.zc')
-rw-r--r--examples/bf.zc2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bf.zc b/examples/bf.zc
index 3971cbc..b3d3a41 100644
--- a/examples/bf.zc
+++ b/examples/bf.zc
@@ -28,7 +28,7 @@ fn translate(s) {
case '[': emit("while (t[p]) {\n"); depth++;
case ']': emit("}\n"); depth--;
case '.': emit("rt.put_c(t[p]);\n");
- case ',': emit("t[p] = eof() ? 0 : get_c() & 255;\n");
+ case ',': emit("t[p] = rt.eof() ? 0 : rt.get_c() & 255;\n");
}
i++;
}