Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pocmo/Python-Brainfuck

Just a small Brainfuck interpreter written in Python
https://github.com/pocmo/Python-Brainfuck

Last synced: 3 months ago
JSON representation

Just a small Brainfuck interpreter written in Python

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.