We have some RFC for parser rewrite using lemon : https://wiki.php.net/rfc/lemon
And AFAIR, adoy has a full working rewrite just as-is, the main topic with lemon was to make the parser thread safe, not to generate an AST. Writing a parser / compiler for using an AST is a very huge task, so that might be done. Julien.P On Mon, Sep 3, 2012 at 6:05 PM, Andrew Faulds <a...@ajf.me> wrote: > On 03/09/12 17:03, Laruence wrote: >> >> It is great parser(simple and fast) which make php works well for years.. > > No, it's not, it's overly complex. You have to define all sorts of different > expression and variable variations :( > >>> rewrite the parser for what? for more academism? > > No, because current one is constraining implementation of some things, and > making some things impossible. (we are limited, for instance, in options for > order that generator expressions (e.g. Python's [i*2 for i in range(6)]) > could be) > >>> we will rewrite it soon or later, but it's not because current one is >>> bad, it will because a better parser tool shows up... > > Well, current one is bad. It only works well for some common cases. For > others, it doesn.t > > > -- > Andrew Faulds > http://ajf.me/ > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php