brainf*ck repl implementation