https://github.com/pocmo/python-brainfuck
Just a small Brainfuck interpreter written in Python
https://github.com/pocmo/python-brainfuck
Last synced: about 1 year ago
JSON representation
Just a small Brainfuck interpreter written in Python
- Host: GitHub
- URL: https://github.com/pocmo/python-brainfuck
- Owner: pocmo
- Created: 2011-06-18T18:58:11.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2022-02-06T04:13:05.000Z (over 4 years ago)
- Last Synced: 2025-03-31T10:11:59.864Z (about 1 year ago)
- Language: Python
- Homepage: http://www.pocmo.de
- Size: 4.88 KB
- Stars: 211
- Watchers: 9
- Forks: 58
- Open Issues: 4
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This is just a small Brainfuck interpreter written in Python.
Usage:
./brainfuck.py yourcode.bf
You can use it as a module as well:
import brainfuck
sourcecode = """
++++++++++[>+++++++>++++++++++>+++>+<<<<-]
>++.>+.+++++++..+++.>++.<<+++++++++++++++.
>.+++.------.--------.>+.>.
"""
brainfuck.evaluate(sourcecode)
http://en.wikipedia.org/wiki/Brainfuck
(C) Sebastian Kaspari 2011
This programm is licensed under the terms of the
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE.