Skip to content

Instantly share code, notes, and snippets.

@ryantenney
Created August 11, 2010 02:43
Show Gist options
  • Save ryantenney/518388 to your computer and use it in GitHub Desktop.
Save ryantenney/518388 to your computer and use it in GitHub Desktop.
209 char brainfuck interpreter written in C. Not a single char of whitespace in the program.
char*S[99],P[999],T[999],**s=S,*p=P,*t=T,c,x;main(){read(0,p,999);for(;c=*p;++p)c^93?x?:c^91?c^62?c^60?c^46?c^45?c^44?c^43?:++*t:(*t=getchar()):--*t:putchar(*t):t--:t++:*t?*(s++)=p:++x:x?--x:*t?p=*(s-1):--s;}
@ryantenney
Copy link
Author

209 char brainfuck interpreter written in C. Not a single char of whitespace in the program :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment