META II

Today I implemented the META II compiler compiler using this paper: META II: A syntax-oriented compiler writing language. The code can be found on GitHub. An interesting idea from this paper is that the language is really easy to implement using just a few lines of code. The C code is quite a bit larger, but could be made smaller. A bigger problem with the code is that the compiler generates an assembly language program that still needs an assembler and a virtual machine....

October 15, 2011