summaryrefslogtreecommitdiff
path: root/main.ha
diff options
context:
space:
mode:
Diffstat (limited to 'main.ha')
-rw-r--r--main.ha2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.ha b/main.ha
index 3b2f690..e1c9e74 100644
--- a/main.ha
+++ b/main.ha
@@ -9,4 +9,6 @@ let bf: Brainfuck = Brainfuck {
export fn main() void = {
const buf = drain_stdin();
defer free(buf);
+ const buf = optimize(buf);
+ exec(&bf, buf);
};