Saturday, 26th September, 2009
Baby’s First Interpreter
So in a previous post I blogged about a Brainfuck to Python compiler which I quickly knocked together whilst drunk. Obviously, I wrote a compiler while drunk, therefore I must be able to write an interpreter while sober.
Yeah, right.
I’ve been trying to get it to interpret successfully for a day or so now, and I’ve got the basics worked out, I’m just trying to fix the kinks in the looping constructs.
New things learned range from “Don’t code with your head at a 90 degree angle from your body” to “If it can be abstracted away, it might be worth while trying it” and one final thought for the road “Unit Testing can be a massive help, but you have to write your tests correctly first.”
Done! :-D