Skip to content
Just a small Brainfuck interpreter written in Python
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README
brainfuck.py
getch.py

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.

You can’t perform that action at this time.