Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62754 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99261 invoked from network); 3 Sep 2012 16:22:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2012 16:22:09 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:39837] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D2/CF-20751-039D4405 for ; Mon, 03 Sep 2012 12:22:09 -0400 Received: by obbwc18 with SMTP id wc18so10236035obb.29 for ; Mon, 03 Sep 2012 09:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=ODMzRrLMaRIs/YxXXxnx/3QO82XZpuMHy9IX4zEz2nw=; b=I0EA+T0Bjfht9tGxt2Cm/G6vfm7AaSB575Ju8NsjEd1veGezH6lwuImaz3PD3nKKfS QiraWYtQfsF5XUMPqz1yZki5ihGlO++Nz42zDEJK8vXy1ekMysAXTdS1VCiaV6MxhVbw jdEa+jW88t57Yp+ydtvMonNP3pNw67ahjZ1D1IOGWb1NzUWDmQ2gYNgEtatNTBvyHCSM QUf9cRxAEuaEvMYck44D7T5jml2y7tucpIIc6HDpiQPmXwwG8JYQIU/yst9ZxjBdQK8A QuWRUaYGyXJg6FEaaAvnIahEsanaR6Px9CZx/SIFWmEOlISVeXQdduLbyIpJgFpylZCn f40w== Received: by 10.182.188.41 with SMTP id fx9mr13997257obc.92.1346689325941; Mon, 03 Sep 2012 09:22:05 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.76.75.105 with HTTP; Mon, 3 Sep 2012 09:21:25 -0700 (PDT) In-Reply-To: <5044D54E.9090008@ajf.me> References: <5044C3E6.8040202@hoa-project.net> <5044CA5C.9080208@ajf.me> <5044D54E.9090008@ajf.me> Date: Mon, 3 Sep 2012 18:21:25 +0200 X-Google-Sender-Auth: BQeYC31lboaF3imVWpmeu7mt818 Message-ID: To: Andrew Faulds Cc: Laruence , ivan.enderlin@hoa-project.net, internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] $obj->attr::method() is not allowed From: jpauli@php.net (jpauli) 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 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 >