1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-27 12:24:39 +01:00
PHP-Parser/lib/PHPParser
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
..
Builder Add function builder 2012-03-11 09:02:52 +01:00
Comment Collect normal comments too, not only doc comments 2012-05-06 17:49:04 +02:00
Lexer Generalize the attribute generation for nodes 2012-05-05 17:34:27 +02:00
Node Store line and doc comment as attributes 2012-05-04 10:16:59 +02:00
NodeVisitor Fix NameResolver to properly copy attributes 2012-05-04 10:18:50 +02:00
PrettyPrinter [5.4] Add direct dereferencing of new expression 2011-11-21 18:43:35 +01:00
Serializer Collect normal comments too, not only doc comments 2012-05-06 17:49:04 +02:00
Unserializer Adjust XML unserializer for new comments attribute 2012-05-06 18:12:02 +02:00
Autoloader.php Cover errors (and fix errors for namespace names) 2011-11-27 12:58:20 +01:00
Builder.php Add class builder 2012-03-10 17:56:56 +01:00
BuilderAbstract.php Add ability to specify arrays as default values 2012-03-11 08:53:04 +01:00
BuilderFactory.php Add function builder 2012-03-11 09:02:52 +01:00
Comment.php Replace \N with . 2012-05-11 20:38:05 +02:00
Error.php Some more test improvements (+ fixes) 2011-11-27 21:50:19 +01:00
Lexer.php Collect normal comments too, not only doc comments 2012-05-06 17:49:04 +02:00
Node.php Fix getAttribute signature in Node interface 2012-05-11 18:48:23 +02:00
NodeAbstract.php Fix $node->getDocComment() 2012-05-06 18:24:26 +02:00
NodeDumper.php Add PHPParser_Node interface 2011-09-21 21:43:19 +02:00
NodeTraverser.php Remove unused variable 2012-03-03 17:01:28 +01:00
NodeVisitor.php Don't use references in NodeTraverser 2011-09-24 23:39:05 +02:00
NodeVisitorAbstract.php Cover, fix and cleanup XML unserializer 2011-12-03 15:15:20 +01:00
Parser.php Fix parsing of new expressions in parenthesis 2012-05-12 14:11:10 +02:00
PrettyPrinterAbstract.php Insert comments when pretty printing 2012-05-11 16:18:14 +02:00
Serializer.php Add XML serialization and unserialization support 2011-11-06 17:07:38 +01:00
Template.php Use inject-once approach for lexer 2012-05-04 10:16:46 +02:00
TemplateLoader.php Add a filesystem template loader. 2012-04-03 23:52:00 +02:00
Unserializer.php Add XML serialization and unserialization support 2011-11-06 17:07:38 +01:00