BrainFuck interpreter and code generator