> pecl/parse_tree (if it (still) works) provides access to the parse
> tree of PHP code in the form of XML. The XML can be manipulated and
> then transformed back into PHP code.
PECL::Parse_Tree is still in alpha state and has not been updated since
January 2007, so I don't have too much confiden
Am 02.12.2009 18:35, schrieb Raphael Pigulla:
> As you can see, I haven't really found a satisfactory solution yet, so any
> help is appreciated.
pecl/parse_tree (if it (still) works) provides access to the parse tree
of PHP code in the form of XML. The XML can be manipulated and then
transform
Hello,
I'm trying to alter existing PHP code by transforming its AST. From what
I've read, the Zend Engine does a one-pass compile and thus offers no way to
access the AST. (Whether this is a good or a bad idea doesn't really matter
at this point, so let us stay away from that discussion for now.)