php-parser/test/code/parser/expr
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
..
fetchAndCall Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
arrayDef.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
assign.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
cast.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
clone.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
closure.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
comparison.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
errorSuppress.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
exit.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
includeAndEval.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
issetAndEmpty.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
logic.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
math.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
new.test Fix parsing of new expressions in parenthesis 2012-05-12 14:11:10 +02:00
print.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
shellExec.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
ternary.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
variable.test Insert comments when pretty printing 2012-05-11 16:18:14 +02:00