Name: Anonymous 2009-12-19 3:12
So I couldn't sleep and out of boredom wrote a brainfuck to C compiler.
http://nopaste.info/73ec0c6fa7_nl.html
http://nopaste.info/73ec0c6fa7_nl.html
foreach(<>){
s/++ptr;/>/;
s/--ptr;/</;
s/++\*ptr;/+/;
s/--\*ptr;/-/;
s/putchar\(\*ptr\);/./;
s/putchar\(\*ptr\);/,/;
s/while \(\*ptr\) {/[/;
s/}/]/;
print;
}