Re: Give the Language a Rest motion

From: Date: Thu, 09 Mar 2006 23:15:14 +0000
Subject: Re: Give the Language a Rest motion
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-22311@lists.php.net to get a copy of this message
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

« previous php.internals (#22311) next »