brainfuck_run.py
from brainfuck import Brainfuck
bf = Brainfuck(size=10)
bf.compile(">+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.")
#bf.run(limit=1000)
from cStringIO import StringIO
sio = StringIO()
bf.run(limit=1000,out=sio)
p = sio.getvalue()
sio.close()
print p
Recommended Posts