ircmaxell/php-yacc
PHP port of kmyacc: a YACC/LALR(1) parser generator that takes a YACC grammar (plus a parser template) and generates a PHP parser. Useful for building fast parsers for structured/unstructured languages; generation is resource-heavy, parsing is fast.
Add -n option. If specified, it is possible to reference semantic values by name. Otherwise plain identifiers in semantic actions will not be interpreted specially.
Preserve tokens that are not used in the grammar, unlike the original kmyacc. This makes it easier to maintain multiple parsers using the same tokens (but possibly not all of them), like the PHP 5 / PHP 7 support in PHP-Parser.
Print (unexpected) shit/reduce and reduce/reduce errors to stderr rather than the debug stream.
#if (-t) in the parser template.-v and -x flags in the phpyacc binary.Fix autoload.php paths in phpyacc binary.
Install phpyacc library using composer.
Initial release.
How can I help you explore Laravel packages today?