Just a small Brainfuck interpreter written in Python
Switch branches/tags
Nothing to show
Clone or download
pocmo Merge pull request #1 from worldsproject/master
Small changes to make it work on Python3
Latest commit 3416e03 Oct 23, 2017
Permalink
Failed to load latest commit information.
README Code cleanup and update README Jun 18, 2011
brainfuck.py Works in Python3 now Mar 10, 2013
getch.py initial Jun 18, 2011

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.