Re: accessing PHPs AST
| From: | Sebastian Bergmann | Date: | Wed, 02 Dec 2009 18:23:08 +0000 |
| Subject: | Re: accessing PHPs AST | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46266@lists.php.net to get a copy of this message | ||
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
transformed back into PHP code.
What kind of AST transformations are you thinking about?
--
Sebastian Bergmann Co-Founder and Principal Consultant
http://sebastian-bergmann.de/
http://thePHP.cc/