Tools: VM/interpreter generators

SPARK — a “little language framework” for Python

Friday, April 9th, 2004

SPARK is a “Scanning, Parsing, and Rewriting Kit,” enabling the construction of interpreters and compilers for “little” or domain-specific languages in Python. It appears to be fairly widely used; the author has used it for “a compiler for Guide, compiling a subset of Java, an experimental type inferencer for Python, and probably a few other things I’ve forgotten.”

Vmgen interpreter generator

Wednesday, March 31st, 2004

Vmgen is a tool implemented in gforth. Vmgen transforms a description of VM instructions into a high-performance interpreter; it can generate threaded code, schedule VM instruction dispatch, and keep the top of the stack in a register. Vmgen can be used with either stack-based or register-based VMs.