Blog

  • Crafting Interpreters

    Some time ago I was developing in Java a client for RoboCup 2D for an academic research project, and I was also in need of automation scripts. I didn’t really want to use another language to write and run the scripts so I implemented a small class that loaded the instructions from a file and ran them directly in Java. It wasn’t pretty or powerful but it worked.

    In that occasion I based the instructions loosely in Assembly, it is kind of straightforward to execute the instructions with a simple stack and I even used an internal GOTO to implement a for-loop. I will eventually posted the code here once I find it.

    Some time later I bought the dragon book and started reading it, unfortunately I was not yet in the position to read it by myself so I abandoned it for a while. Today I am reading the online book Crafting Interpreters to finally understand and play with the language that is implemented in this book. Maybe then, I will resume the developing of my own programming language or at least use it for my own automation tasks.