-
-
Save leomastoras/eb5a482af4a68a53b3fc48cb766028d4 to your computer and use it in GitHub Desktop.
shortest (140 bytes) BF interpreter with whitespace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// shortest BF interpreter with whitespace: | |
s[999], *r=s, *d, c; | |
main(a, b) | |
{ | |
char *v=1[d=b]; | |
for(;c = *v++ % 93;) | |
for(b = c%7 ? | |
a && | |
(c & 17 ? | |
c & 1 ? | |
(*r -= c - 44) | |
:(r += c - 61) | |
:c & 2 ? | |
putchar(*r) | |
:(*r = getchar()) | |
,0) | |
:v; | |
b&&c | a * *r; | |
v=d) | |
main(!c,&b-1); | |
d = v; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment