Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83515 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3721 invoked from network); 23 Feb 2015 00:19:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Feb 2015 00:19:07 -0000 Authentication-Results: pb1.pair.com header.from=marcio.web2@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=marcio.web2@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.53 as permitted sender) X-PHP-List-Original-Sender: marcio.web2@gmail.com X-Host-Fingerprint: 209.85.215.53 mail-la0-f53.google.com Received: from [209.85.215.53] ([209.85.215.53:34895] helo=mail-la0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/01-33016-9F17AE45 for ; Sun, 22 Feb 2015 19:19:06 -0500 Received: by labgm9 with SMTP id gm9so15637943lab.2 for ; Sun, 22 Feb 2015 16:19:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=qUE9kDtxTtHXhyBrFZG7eDqTXQH97QCFBeMOiMFJFcM=; b=LIFeN8IqeXsvF/WNlC2oLX+I7o7n7dlKYPSGpmq1e6+UAIOE6AQoWpj07AUc28MLac oelCmD+FJ11gmkXma3ZbagG6QnQPhlibTfWIMDUeu0lgNANa5saPhg5lnRBJbUUJmvhy k+YXjBwNsU9Rk27cXW3oUV+ewBoX+vJrF+XORU8MwZ4F7aBm8cPNkJ15bfci55C4NhZC YQSMzxDL4WKYWAOXLN8zo9rZRQQ1yXlrXMY5CZanQn6s04k7jfdq/HztBCpWiiI1YI2M FNBuBuX4pVu94rverLKhzw6l7Cbg4UPuwUqPb4yecytCT74bH6hIVN6XC7NP/xUpS0Pr vSKg== X-Received: by 10.152.9.98 with SMTP id y2mr2089742laa.94.1424650742664; Sun, 22 Feb 2015 16:19:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.118.193 with HTTP; Sun, 22 Feb 2015 16:18:42 -0800 (PST) Reply-To: marcio3w@gmail.com In-Reply-To: <54EA5644.1090404@gmail.com> References: <54EA5644.1090404@gmail.com> Date: Sun, 22 Feb 2015 21:18:42 -0300 Message-ID: To: Stanislav Malyshev Cc: PHP internals Content-Type: multipart/alternative; boundary=089e0158ba6c721526050fb6594e Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Context Sensitive lexer From: marcio.web2@gmail.com (Marcio Almada) --089e0158ba6c721526050fb6594e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Stas 2015-02-22 19:20 GMT-03:00 Stanislav Malyshev : > Hi! > > I like the idea. But we need to examine the cases carefully so we don't > block some future routes - especially this is with regards to such > things as type names which we wanted to reserve. > > I.e. method names resolution is probably clear, since they appear after > -> or ::, but for class names the context may be much more varied. > -- > Stas Malyshev > smalyshev@gmail.com > I agree. You and Nikita are right. Doing more than that with a pure lexical approach, without migrating to another lexer generator (which was already attempted before) or using some form of lexer feedback (which at current state breaks ext tokenizer) would be inadequate and create future issues. I'll probably work on a more ambitious and adequate solution for PHP 7.1~7.2. For now, as said before, I'll revert the RFC, and proposed patch, to version 0.2 aiming only class|object members declaration and access. This is perfectly achievable, has no drawbacks and brings many benefits. The RFC will probably be ready for discussion again in ~2 days. Thanks, M=C3=A1rcio --089e0158ba6c721526050fb6594e--