Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20536 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7081 invoked by uid 1010); 26 Nov 2005 12:58:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7066 invoked from network); 26 Nov 2005 12:58:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2005 12:58:02 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:51591] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 82/7D-56276-9DB58834 for ; Sat, 26 Nov 2005 07:58:02 -0500 Received: from [192.168.1.3] (dslb-084-063-047-015.pools.arcor-ip.net [84.63.47.15]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id E25D6610282; Sat, 26 Nov 2005 14:04:16 +0100 (CET) Date: Sat, 26 Nov 2005 13:56:05 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1845355691.20051126135605@marcus-boerger.de> To: Sebastian Kugler Cc: =?iso-8859-1?Q?Oliver_Gr=E4tz?= , In-Reply-To: <818043770511260446q14947ceai64c78d146e632b71@mail.gmail.com> References: <7.0.0.16.2.20051124161240.0573e640@zend.com> <200511251419.56809.pookey@pookey.co.uk> <57.B8.56276.65B27834@pb1.pair.com> <73998811.20051125204046@marcus-boerger.de> <438782C6.80008@gmail.com> <43878626.5060300@lerdorf.com> <512771162.20051125225926@marcus-boerger.de> <6B.D6.56276.154E7834@pb1.pair.com> <1638013035.20051126122138@marcus-boerger.de> <818043770511260446q14947ceai64c78d146e632b71@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there) From: helly@php.net (Marcus Boerger) Hello Sebastian, Saturday, November 26, 2005, 1:46:31 PM, you wrote: > On 11/26/05, Marcus Boerger wrote: >> The only thing that matters is whether i can write a correct >> lexer/parser for this without breaking stuff. > Im no parser expert at all, so just to be sure that I understand the > problem correctly: I guess you can't distinguish at the parser/lexer > level between cases where it's ambiguos without white spaces and where > it isn't? A lexer splits on tokens while white space is optional. If present it allows separation of tokens. Forcing this would make whitespace a token which would be very bad. The parser then works on the tokens and doesn't see any whitespace. > Alternatively, could you provide a configuration switch to turn the > use of namespace constants in the ternary on or off? (So that people > who don't use namespace constants but use the ternary without spaces > wouldn't need to change all their code?) That is no option at all becuase it would make it impossible to write portable php code. marcus