Brainfuck in Elixir, part three, compiling
This is the third in a series of articles on building a brainfuck interpreter in Elixir. In the first part we built a minimal brainfuck interpreter that can already run some basic program. In the second part we completed it by implementing loops. In this third episode we'll write a simple compiler to translate Brainfuck instructions to a machine readable intermediate format (AST) and a VM that executes it.