Execute Brain****/Python: Difference between revisions
m
Fixed syntax highlighting.
No edit summary |
m (Fixed syntax highlighting.) |
||
(One intermediate revision by one other user not shown) | |||
Line 3:
Implementation of a [[Brainfuck]] interpreter in [[Python]].
<
import sys
import collections
#from collections import defaultdict instead since this only uses defaultdict?
def brainfuck (fd=None):
Line 37 ⟶ 38:
ptr += 1
if __name__ == "__main__": brainfuck()</
|