Parse brainfuck string to internal representation