Skip to content

terenaa/python-brainfuck-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Python Brainfuck interpreter

Just another small Brainfuck interpreter written in Python. It is able to evaluate inline BF script as well as read from file.

Usage

Standalone

$ ./bfi.py [OPTIONS] <file_name.bf>

Available options

--cell-size=NUM     Set single cell size in bits (default = 8)
--memory-dump       Show memory dump at the end of script execution

Module

from bfi import *

try:
    Brainfuck().eval("This comment will be ignored")
except BrainfuckException as e:
    print(str(e))

Contributing

Did you find a bug or got an idea? Feel free to use the issue tracker. Or make directly a pull request.

Author & license

The code is written by Krzysztof Janda and is 100% FREE under MIT license.

About

Just another small Brainfuck interpreter written in Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages