Skip to content
LucasMW edited this page Jan 24, 2018 · 1 revision

Brainfuck Interpreter

bfi (Brainfuck Interpreter) is an standalone version of the Brainfuck interpreter used internally to debug.

Usage:

 ./bfi file.bf [-extra]

If file bf has unpaired '[' and ']', it will abort with an error message. The -extra option activates the debug instructions. With -extra the '@' instruction will make bfi display its current memory state.

The "-extra" is of Headache's debug tools. The command "%;" makes hac generate '@' instruction for bfi to display memory at the point in code execution, helping debug. Since the extra instructions doesn't make part of the brainfuck standard, they are opt-in.

Clone this wiki locally