ANN: phc 0.1, framework for processing PHP

"Edsko de Vries" <>
26 Oct 2005 14:40:35 -0400

          From comp.compilers

Related articles
ANN: phc 0.1, framework for processing PHP (Edsko de Vries) (2005-10-26)
| List of all articles for this month |

From: "Edsko de Vries" <>
Newsgroups: comp.compilers
Date: 26 Oct 2005 14:40:35 -0400
Keywords: available
Posted-Date: 26 Oct 2005 14:40:35 EDT


A friend and myself are attempting to build a compiler for PHP, that
will compile PHP code into native i86/Linux assembly code. As part of
this project, we have developed

- an abstract grammar for PHP,
- a C++ class structure for this abstract grammar,
- a parser that takes any PHP script and returns the corresponding
object structure (abstract syntax tree),
- an unparser that dumps a tree in this format back to normal PHP code
- an unparser that dumps the tree in DOT format, and finally
- an API for transforming/traversing the tree

The first release, licensed under the GPL and containing all of the
above, can be found at That website also
contains reference documentation and getting started tutorials.

Comments are welcome,

Edsko de Vries and John Gilbert

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.