[ANNOUNCEMENT] PHP_LexerGenerator-0.3.0 (alpha) Released.
| From: | PEAR Announce | Date: | Thu, 12 Oct 2006 18:43:01 +0000 |
| Subject: | [ANNOUNCEMENT] PHP_LexerGenerator-0.3.0 (alpha) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-25418@lists.php.net to get a copy of this message | ||
The new PEAR package PHP_LexerGenerator-0.3.0 (alpha) has been released at http://pear.php.net/.
Release notes
-------------
- fix Bug #9006: wrong replacements for plex script (Hartmut Holzgraefe)
- fix Bug #9007: yymore does not honor return value "true" to change state
- implement Request #8879: lexer not picking longest match
Package Info
------------
Translate a lexer file with a format similar to re2c (http://re2c.org)
into a PHP 5 lexer for use with a parser.
Unlike re2c (as of re2c version 0.11), generated lexers are state-aware
out of the box.
Generated lexers are very efficient, more than twice as efficient as other
alternatives like csLex (written in C#) because they utilize PHP's
built-in Perl-compatible regular expressions to lex for tokens.
Now in version 0.3.0+, with processing instruction %longestmatch, generated
lexers will always pick the longest string to match, rather than the first.
Generated lexers are slightly slower, but match behavior of legacy lexers like
flex, lex, re2c.
Related Links
-------------
Package home: http://pear.php.net/package/PHP_LexerGenerator
Changelog: http://pear.php.net/package/PHP_LexerGenerator/download/0.3.0
Download: http://download.pear.php.net/package/PHP_LexerGenerator-0.3.0.tgz
Authors
-------
Greg Beaver (lead)