Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32524 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25552 invoked by uid 1010); 1 Oct 2007 19:49:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 25537 invoked from network); 1 Oct 2007 19:49:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Oct 2007 19:49:39 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:15757] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/D0-20520-F4F41074 for ; Mon, 01 Oct 2007 15:49:37 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 1 Oct 2007 21:49:32 +0200 Received: from [127.0.0.1] ([192.168.16.180]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 1 Oct 2007 12:49:29 -0700 Message-ID: <47014F48.6080301@zend.com> Date: Mon, 01 Oct 2007 12:49:28 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Gregory Beaver CC: Andi Gutmans , =?ISO-8859-1?Q?Johannes_Schl=FCter?= , Sebastian Bergmann , internals@lists.php.net References: <1191237850.2903.19.camel@johannes.nop> <698DE66518E7CA45812BD18E807866CEB9528E@us-ex1.zend.net> <47014EE9.9000806@chiaraquartet.net> In-Reply-To: <47014EE9.9000806@chiaraquartet.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Oct 2007 19:49:29.0319 (UTC) FILETIME=[2DE39770:01C80464] Subject: Re: [PHP-DEV] T_IMPORT vs. T_USE From: stas@zend.com (Stanislav Malyshev) > This would be pretty easy, in a hackish way, by adding a whole bunch of > duplicate rules T_FUNCTION T_STRING, T_FUNCTION T_IMPORT, T_FUNCTION > T_NAMESPACE and so on. A more robust way would be to move to lemon/re2c > but I'm not volunteering to do this (yet?) probably better something like keyword_as_identifier -> T_IMPORT | T_NAMESPACE | etc. and then T_FUNCTION keyword_as_identifier, T_CLASS keyword_as_identifier etc. But we have to watch out for expressions - there could be conflicts... That's what we should check. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com