Re: T_IMPORT vs. T_USE

From: Date: Mon, 01 Oct 2007 19:49:28 +0000
Subject: Re: T_IMPORT vs. T_USE
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-32524@lists.php.net to get a copy of this message
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

« previous php.internals (#32524) next »