Execute Brain****/Python: Difference between revisions

Content added Content deleted
(no need for temp)
m (Categorization now in master page)
Line 1: Line 1:
{{implementation|Brainf***}}{{collection|RCBF}}[[Category:Python]]
{{implementation|Brainf***}}{{collection|RCBF}}


Quick implementation of a [[Brainfuck]] interpreter in Python.
Quick implementation of a [[Brainfuck]] interpreter in [[Python]].


<lang python>
<lang python>#!/usr/bin/python
#!/usr/bin/python


from __future__ import with_statement
from __future__ import with_statement
Line 64: Line 63:
if __name__ == "__main__":
if __name__ == "__main__":
interpreter = BrainFuck()
interpreter = BrainFuck()
interpreter.main()
interpreter.main()</lang>
</lang>