cea0c4a9 | 22-Mar-2015 |
Nikita Popov |
Don't register aliases on PHP 7 |
729c7bde | 21-Mar-2015 |
Matthieu Napoli |
#184 Add a flag to NodeTraverser to avoid cloning nodes |
8982315b | 21-Mar-2015 |
Nikita Popov |
Rename Cast\Object as well As it will very likely be soft-reserved in PHP 7. Old alias is still available, as usual. |
0f556c16 | 21-Mar-2015 |
Nikita Popov |
Fix a few more Scalar\String_ occurances Totally forgot that the parser uses macros... |
7ec277e1 | 21-Mar-2015 |
Nikita Popov |
Replace another Scalar\String occurance Also canonicalize NameResover tests to avoid those pesky CRLF issues. |
1a627872 | 20-Mar-2015 |
Nikita Popov |
Rename nodes for compat with PHP 7 The old names will still be available on PHP 5.x. |
592836c4 | 14-Mar-2015 |
Nikita Popov |
Add support for T_HASHBANG (HHVM) |
d2255558 | 13-Mar-2015 |
Andreas Lutro |
Ensure compatibility with multiple autoloaders Running a .phar or regular PHP executable that requires and includes its own version of php-parser will cause a "cannot redeclare class" er
Ensure compatibility with multiple autoloaders Running a .phar or regular PHP executable that requires and includes its own version of php-parser will cause a "cannot redeclare class" error if said executable also includes the autoloader of the current working directory.
show more ...
|
251e6892 | 12-Mar-2015 |
Nikita Popov |
Add support for spaceship operator (<=>) [PHP 7] Added as Expr\BinaryOp\Spaceship. |
01f4be6b | 12-Mar-2015 |
Nikita Popov |
Add support for null coalesce operator (??) [PHP 7] Added as Expr\BinaryOp\Coalesce. |
dc28449d | 12-Mar-2015 |
Nikita Popov |
Drop whitespace after ... varargs collection Also drop an obsolete pretty printer test. |
3ad0d4b3 | 12-Mar-2015 |
Nikita Popov |
Add support for return type declarations [PHP 7] This adds an additional "returnType" subnode to Stmt\Function_, Stmt\ClassMethod and Expr\Closure, as well as the corresponding suppo
Add support for return type declarations [PHP 7] This adds an additional "returnType" subnode to Stmt\Function_, Stmt\ClassMethod and Expr\Closure, as well as the corresponding support in the name resolver and pretty printer.
show more ...
|
4dbf067b | 11-Mar-2015 |
Nikita Popov |
Add a few more string interpolation tests Originally wanted to simplify the pretty-printer output, but ... edge cases everywhere :/ |
5567f0ab | 10-Mar-2015 |
Nikita Popov |
Add documentation TOC to readme |
0c347067 | 10-Mar-2015 |
Nikita Popov |
Add "use" builder |
f9fc2fc9 | 10-Mar-2015 |
Nikita Popov |
Add support for global namespace in NS builder NULL argument can now be used to create a global namespace {} block. |
a2d7e897 | 28-Feb-2015 |
Nikita Popov |
Use real properties for storing subnodes Instead of storing subnodes in a subNodes dictionary, they are now stored as simple properties. This requires declarating the properties, ass
Use real properties for storing subnodes Instead of storing subnodes in a subNodes dictionary, they are now stored as simple properties. This requires declarating the properties, assigning them in the constructor, overriding the getSubNodeNames() method and passing NULL to the first argument of the NodeAbstract constructor. [Deprecated: It's still possible to use the old mode of operation for custom nodes by passing an array of subnodes to the constructor.] The only behavior difference this should cause is that getSubNodeNames() will always return the original subnode names and skip any additional properties that were dynamically added. E.g. this means that the "namespacedName" node added by the NameResolver visitor is not treated as a subnode, but as a dynamic property instead. This change improves performance and memory usage.
show more ...
|
73cace36 | 02-Mar-2015 |
Thomas Ruiz |
Implicit public should not generate as explicit public |
c96636d1 | 08-Mar-2015 |
Nikita Popov |
Revert "Create .gitattributes with basic export-ignores" This reverts commit 0dd2b9a74c46149847d79e72cf418a0f519e3ed9. Not having tests available causes issues for downstream di
Revert "Create .gitattributes with basic export-ignores" This reverts commit 0dd2b9a74c46149847d79e72cf418a0f519e3ed9. Not having tests available causes issues for downstream distributors. See issue #178.
show more ...
|
d56ff5a3 | 26-Feb-2015 |
Nikita Popov |
Fix lexer tests for HHVM HHVM does not throw warnings from token_get_all() for invalid chars and unterminated comments. This is not really integral functionality, so I'm okay to
Fix lexer tests for HHVM HHVM does not throw warnings from token_get_all() for invalid chars and unterminated comments. This is not really integral functionality, so I'm okay to just skip it to get a passing HHVM build.
show more ...
|
3028bc80 | 26-Feb-2015 |
Nikita Popov |
And make it work on PHP 5 as well... |
91295a07 | 26-Feb-2015 |
Nikita Popov |
Make tests compatible with PHP 7 When parsing on PHP 7 we will no longer be able to deal with code that contains invalid octal literals. Currently we'll fatal, after engine exception
Make tests compatible with PHP 7 When parsing on PHP 7 we will no longer be able to deal with code that contains invalid octal literals. Currently we'll fatal, after engine exceptions land we'll throw an exception instead.
show more ...
|
d600c607 | 26-Feb-2015 |
Nikita Popov |
Add PHP 7 to travis build |
e3bc5b56 | 14-Feb-2015 |
Hugo Fonseca |
Added php shebang |
ce5c76d7 | 13-Feb-2015 |
Markus Staab |
prevent a unnecessary concat analog to https://github.com/nikic/PHP-Parser/commit/b7ffdbbb929f9f07780a236659d1d1baf68ef137 |