[ANNOUNCEMENT] PHP_ParserGenerator-0.1.6 (alpha) Released.
| From: | PEAR Announce | Date: | Fri, 05 Mar 2010 07:09:12 +0000 |
| Subject: | [ANNOUNCEMENT] PHP_ParserGenerator-0.1.6 (alpha) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-30363@lists.php.net to get a copy of this message | ||
The new PEAR package PHP_ParserGenerator-0.1.6 (alpha) has been released at http://pear.php.net/.
Release notes
-------------
- fix Bug #11645: unused rhs labels undetected [r0vert]
- fix Bug #11647: substitution of @X works incorrectly [r0vert]
- Bug #10685 fatal error when calling "phplemon --help"
Package Info
------------
Translate a grammar file in the lemon parser generator format
into a PHP 5-based parser
There are a few PHP-specific changes to the lemon parser generator.
- %extra_argument is removed, as class constructor can be used to
pass in extra information
- %token_type and company are irrelevant in PHP, and so are removed
- %declare_class is added to define the parser class name and any
implements/extends information
- %include_class is added to allow insertion of extra class information
such as constants, a class constructor, etc.
Other changes make the parser more robust, and also make reporting
syntax errors simpler. Detection of expected tokens eliminates some
problematic edge cases where an unexpected token could cause the parser
to simply accept input.
Otherwise, the file format is identical to the Lemon parser generator
Related Links
-------------
Package home: http://pear.php.net/package/PHP_ParserGenerator
Changelog: http://pear.php.net/package/PHP_ParserGenerator/download/0.1.6
Download: http://download.pear.php.net/package/PHP_ParserGenerator-0.1.6.tgz
Authors
-------