Brainfuck Interpreter

class bf_interpreter.Interpret(file_name, mem_size=65536, get_input=<function Interpret.<lambda>>)[source]

Interpret a brainfuck code, Loads file_name in a memory of size mem_size, loads the inputs with get_input

get_output(size=0)[source]

If size is 0 gets the current output, else waits for the output size to be size

step()[source]

Execute an instruction