Code Generation: PHPCC
Alejandro Siri (contact me)
This package can be used to parse code in any language given the definition of the language grammar, much like YACC or BISON for C.
It takes as parameter a definition of a language grammar as a string. Then the main class can parse and process source code in the defined language.
The main compiler class can assign callback functions that are invoked to process different types of elements of the language syntax.
Click here for detailed information about this class on phpclasses.org