brainfuck_ast: move the rest of the implementation into the cpp file