You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
When I found the Portable Brainfuck Interpreter by Urban Mueller, who also created the language, it was on Linus Akesson's webpage, totally crushed and minimized. I had just finished writing my own BF interpreter, which was long and very verbose, so I wanted to know how much slimmer this portable version of the interpreter really was.
So what I did here was:
- Expand the original to where it was more readable
- Annotate what was happening in plain language
- Refactor it to make it easier to follow, esp for a C rube like me
I learned a LOT about operator precedence (particular postfix and prefix notation), comma operators, file descriptors, and a few other things. Overall a fun knot to unravel.