Go to file
Milo Fultz fa6cd1fbab Rename files for ease 2022-03-04 15:09:37 -08:00
1 pbi.c Rename files for ease 2022-03-04 15:09:37 -08:00
2 pbi - annotated.c Rename files for ease 2022-03-04 15:09:37 -08:00
3 pbi - readable.c Rename files for ease 2022-03-04 15:09:37 -08:00
README.md Add README 2022-03-04 15:07:35 -08:00

README.md

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.