Re: Give the Language a Rest motion

From: Date: Thu, 09 Mar 2006 23:26:20 +0000
Subject: Re: Give the Language a Rest motion
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
No speed boost with opcode caches, which will be bundled in PHP 6 :)

Zeev

At 01:15 10/03/2006, Marcus Boerger wrote:
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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php


Thread (18 messages)

« previous php.internals (#22312) next »