Dev Diary #10: Bytecode Compilation
I wanted to make a demo to show off all the steps in a typical
interpreter pipeline of text -> tokens -> AST -> bytecode. I implemented
a full parser and bytecode compiler for a simple toy language to show this off.
Click on the top tabs to select a program and click bottom tabs to see each step in the pipeline.
I plan to expand on this in future, visualising the program memory at runtime. The current interpreter I have for this relies too much on JS behaviour for my liking.
You can find the source code here