1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-13 09:57:25 +01:00
PHP-Parser/test/code/parser
nikic e16513a0eb Fix parsing of new expressions in parenthesis
The new dereferencing syntaxes (new Foo)->bar and (new Foo)['bar'] were
causing a shift/reduce conflict with the '(' expr ')' rule. When
(new Foo) was encountered (without dereference operators following) the
parser thus threw a parse error.

The fix simply adds a special '(' new_expr ')' rule to expr. This does not
remove the shift/reduce conflict itself, but makes it irrelevant.

This fixes issue #20.
2012-05-12 14:11:10 +02:00
..
expr Fix parsing of new expressions in parenthesis 2012-05-12 14:11:10 +02:00
scalar Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
stmt Insert comments when pretty printing 2012-05-11 16:18:14 +02:00