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.) 
Other possible solutions I've come across are phc [1], rphp [2] and PHP
Depend [3]. Unfortunately, the first does not support PHP 5.3, the second is
still in a *very* early stage of development and the third does not allow
'unparsing' and is not particularly fast either (which is only a minor
concern, but still).
The last idea I had was approaching this from the Java side and use the
parser that comes with PDT [4] or PHPEclipse [5], but I haven't yet figured
out how to do this yet, and I'm not even entirely sure if this can be done
outside of Eclipse (of course it should, but who knows).

As you can see, I haven't really found a satisfactory solution yet, so any
help is appreciated.

regards
raph

[1] http://phpcompiler.org/
[2] http://code.roadsend.com/rphp/
[3] http://pdepend.org/
[4] http://www.eclipse.org/pdt/
[5] http://www.phpeclipse.com/




-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to