Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22311 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66856 invoked by uid 1010); 9 Mar 2006 23:15:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 66839 invoked from network); 9 Mar 2006 23:15:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2006 23:15:58 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:42784] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id F0/88-27106-D27B0144 for ; Thu, 09 Mar 2006 18:15:57 -0500 Received: from [192.168.1.3] (dslb-084-063-025-250.pools.arcor-ip.net [84.63.25.250]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 472CD35C1E2; Fri, 10 Mar 2006 00:15:53 +0100 (CET) Date: Fri, 10 Mar 2006 00:15:14 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <794761398.20060310001514@marcus-boerger.de> To: Sara Golemon Cc: internals@lists.php.net In-Reply-To: <009701c643a1$2809bbc0$7d051fac@stumpy> References: <7.0.1.0.2.20060309124054.06c31238@zend.com> <004701c6439b$8d6cd6b0$7d051fac@stumpy> <009701c643a1$2809bbc0$7d051fac@stumpy> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Give the Language a Rest motion From: helly@php.net (Marcus Boerger) Hello Sara, but if we were moving from flex to re2c for that tokenizing scripts we'd get a nice speed boost, too. Typically re2c based scanners are 2 to 3 times faster than lex based ones. And oh-re2c allows unicode scanning (2 byte input) and you can use the same .re to generate two .c files if necessary. best regards matcus Thursday, March 9, 2006, 6:44:45 PM, you wrote: >>> The inability to inject tokens and expressions into the lexer and >>> parser is another limitation on what can be done from extensions in >>> terms of syntax level features. Yes, I know this is more of a problem >>> with bison and flex than with the design of ZE, but that doesn't make >>> it any less bothersome. >> >> Do other compiler tools allow this? >> > I've heard second hand that lemon does. But I'm quite certain that > rewriting the lexer/parser is not at the top of the list of productive ways > to advance the language. > -Sara Best regards, Marcus