php-ast is not almost the same, but it may be extended. Thanks. Dmitry.
On Thu, Feb 5, 2015 at 4:34 PM, Alexander Lisachenko < lisachenko...@gmail.com> wrote: > > 2015-02-05 16:07 GMT+03:00 Dmitry Stogov <dmi...@zend.com>: > >> In general it's should be possible to provide PHP API to manipulate with >> AST and write compiler extensions in PHP. >> Looks promising.. :) >> Anyway, If you are interested - start working on it. > > > > Actually, it's almost done by Nikita Popov: > https://github.com/nikic/php-ast. Missing part is to put this extension > into PHP core, create an interface for hooks and then give PHP hooks a > control during parsing of source code. > > So maybe just make a vote to include this API into core? This will give a > lot of food for thoughts and implementations of AOP, DbC, SQL-like native > syntax and much more. From PHP Core developers it will be only the > implementation, all other things can be easily extended by userland > developers. >