Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62870 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54737 invoked from network); 6 Sep 2012 15:10:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Sep 2012 15:10:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:55013] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/1A-03079-8ECB8405 for ; Thu, 06 Sep 2012 11:10:33 -0400 Received: from [192.168.2.230] (host-188-174-208-45.customer.m-online.net [188.174.208.45]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id BE78063DE2 for ; Thu, 6 Sep 2012 17:10:29 +0200 (CEST) To: internals@lists.php.net In-Reply-To: <50486309.1090601@php.net> References: <504836A3.20904@zend.com> <50486309.1090601@php.net> Content-Type: text/plain; charset="UTF-8" Date: Thu, 06 Sep 2012 17:10:26 +0200 Message-ID: <1346944226.3695.13.camel@guyrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Moving to an AST-based parsing/compilation process From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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