BF interpreter in Python

Will McGugan news at NOwillmcguganSPAM.com
Tue Mar 29 15:22:28 CEST 2005


Hi,

Python is my favorite language, but I rarely get the opertunity to use 
it at work, so I find myself actively looking for problems to solve with 
it. Consequently while waiting for C++ build to finish, I wrote a 
BrainF*** interpreter.

If you are not familiar with the BF language see the following example, 
which calculates the mandlebrot set..

http://esoteric.sange.fi/brainfuck/bf-source/prog/mandelbrot.b

My BF interpreter is here..

http://www.willmcgugan.com/brainfuck.py

Release to the public domain!

I imagine somebody has already done this in Python, and I fully expect 
some Python expert to give a one line generator expression with the same 
functionality..


Will McGugan



More information about the Python-list mailing list