PHP-Yacc icon indicating copy to clipboard operation
PHP-Yacc copied to clipboard

Running example code

Open KoulSlou opened this issue 5 years ago • 1 comments

If I want to see how code in examples is working, what Lexer class should I use?

I tried to run 00-basic-usage example with Lexer from nikic/php-parser, but I keep getting this error:

Fatal error: Uncaught RangeException: The lexer returned an invalid token (id=317, value=1) in /development/PHP-Yacc/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php:204

KoulSlou avatar May 03 '19 01:05 KoulSlou

I think this package is too bugged (examples, at least, they are broken). If you want to rebuild exactly PhpParser, better clone https://github.com/nikic/PHP-Parser/tree/master/grammar, that one should work fine (rebuildParsers.php).

unkind avatar Aug 25 '20 13:08 unkind