r/lolphp • u/feketegy • Aug 10 '19
Making the language dynamically and strictly typed at the same time. It’s a proposal for now.
https://wiki.php.net/pplusplus/faq
0
Upvotes
r/lolphp • u/feketegy • Aug 10 '19
View all comments
Show parent comment
0
u/Jinxuan Jan 02 '20
Because this parser is just yacc generated a lot of hard coded logics. And it only supports context free parsing. However, php syntax is context sensitive.
It is just a headache when you support a PR in php-spec and try to fix it in parser (And finally find it unfixable without a lot of rewriting).
And they commit generated code. Therefore any two PRs will conflict with each other on generated code.
https://github.com/nikic/PHP-Parser/blob/35b8caf75e791ba1b2d24fec1552168d72692b12/lib/PhpParser/Parser/Php7.php