zax2002

Smallest Brainfuck interpreter written in Python [167 bytes]

May 8th, 2020
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. z=a=x=0
  2. c,m=input(),[0]*999
  3. while(z<len(c)):exec("a+=1|a-=1|m[a]+=1|m[a]-=1|print(chr(m[a]))|m[a]=ord(input())|x=z|if m[a]:z=x".split("|")["><+-.,[]".find(c[z])]);z+=1
Add Comment
Please, Sign In to add comment