Top Level :: PHP

Package Information: PHP_ParserGenerator

This package is not maintained, if you would like to take over please go to this page.
» Summary » License
translate grammar files in Lemon Parser Generator format into a PHP 5 parser New BSD License
» Current Release » Bug Summary
0.1.7 (alpha) was released on 2010-10-25 by doconnor (Changelog)
Easy Install

Not sure? Get more info.

pear install PHP_ParserGenerator

Pyrus Install

Try PEAR2's installer, Pyrus.

php pyrus.phar install pear/PHP_ParserGenerator

  • Package Maintenance Rank: 178 of 225 packages with open bugs
  • Number of open bugs: 3 (20 total bugs)
  • Average age of open bugs: 5501 days
  • Oldest open bug: 6316 days
  • Number of open feature requests: 1 (3 total feature requests)

Report a new bug to PHP_ParserGenerator
» Description
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
» Maintainers » More Information

Dependencies for PHP_ParserGenerator