Just another small Brainfuck interpreter written in Python. It is able to evaluate inline BF script as well as read from file.
$ ./bfi.py [OPTIONS] <file_name.bf>
--cell-size=NUM Set single cell size in bits (default = 8)
--memory-dump Show memory dump at the end of script execution
from bfi import *
try:
Brainfuck().eval("This comment will be ignored")
except BrainfuckException as e:
print(str(e))
Did you find a bug or got an idea? Feel free to use the issue tracker. Or make directly a pull request.
The code is written by Krzysztof Janda and is 100% FREE under MIT license.