Archive for July, 2009

Simple ML to Python

Sunday, July 26th, 2009

While studying for my exams, I tried to implement some examples from a book about virtual machines. The result was a nice little program which can compile simple functional programs into python bytecode! The only thing you need is the ply parser generator. To compile a function just use: import topcompiler @topcompile.compile def func(x, y): [...]