Re: Moving to an AST-based parsing/compilation process

From: Date: Thu, 06 Sep 2012 15:10:26 +0000
Subject: Re: Moving to an AST-based parsing/compilation process
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-62870@lists.php.net to get a copy of this message
On Thu, 2012-09-06 at 09:47 +0100, Sebastian Bergmann wrote: > On 09/06/2012 06:37 AM, Dmitry Stogov wrote: > > The only real advantage could be an ability to expose AST to PHP scripts, > > but only few people may need it. > > Everyone working on static analysis tools for PHP code needs access to > the (canonical) AST. While the number of people behind this "everyone" > will be small (hopefully it will grow) but the tools they create based > based on the AST will be valuable for every PHP developer. As soon as those tools should be version independent they need their own parser anyhow. Aside from that: I don't see the reason for this discussion now. People can go and implement until this is done it's hard to argue about performance etc. as that can hardly be predicted. If people have a need for this they are free to go. If people don't have a need for this they won't. (A more relevant question might be "Who wants to invest time on this", certainly can be a fun project ...) johannes

« previous php.internals (#62870) next »