a35c2a20 | 27-Apr-2015 |
Nikita Popov |
Add column info to EOF errors EOF errors are now located one past the end of the file. |
55b2ead9 | 26-Apr-2015 |
Nikita Popov |
Make special class name checks case insensitive |
e1a0ec37 | 26-Apr-2015 |
Nikita Popov |
Add support for anonymous classes Has not landed upstream yet, but syntax is unlikely to change. |
66896dbd | 26-Apr-2015 |
Nikita Popov |
Poison attribute initializations in parser Those should error if they end up being used. |
338bc1f8 | 26-Apr-2015 |
Nikita Popov |
Fix "print" pretty-printing Precedence was previously ignored. |
ab80054e | 26-Apr-2015 |
Nikita Popov |
Add support for "yield from" |
a6d2cd69 | 23-Apr-2015 |
Nikita Popov |
Clarify attribute assignment code * Don't assign to attribute stack on reduce - why was that there in the first place? * Assign attributes to the position in the stack where the firs
Clarify attribute assignment code * Don't assign to attribute stack on reduce - why was that there in the first place? * Assign attributes to the position in the stack where the first token of the production is, instead of one position earlier. * Add a comment to clarify why we also assign attributes on read, instead of just on shift.
show more ...
|
6996db1e | 22-Apr-2015 |
Nikita Popov |
Build node attributes inside semantic action methods Minor performance improvement for parsing, also allows to access attributes with higher granulity in the parser, though this is not
Build node attributes inside semantic action methods Minor performance improvement for parsing, also allows to access attributes with higher granulity in the parser, though this is not currently done. * #n can now be used to access the stack position of a token. $n is the same as $this->semStack[#n]. (Post-translate $n will actually be the stack position.) * $attributeStack is now $this->startAttributeStack and $endAttributes is now $this->endAttributes. * Attributes for a node are now computed inside the individual reduction methods, instead of being passed as a parameter. Accessible through the attributes() macro.
show more ...
|
a5477a4e | 19-Apr-2015 |
Graham Campbell |
Version bump |
7a40498c | 19-Apr-2015 |
Nikita Popov |
Regenerate parser Also drop the error() parser macro. |
65f1adbe | 02-Feb-2015 |
Nikita Popov |
Merge primary error recovery code The grammar does not yet actually implement error recovery. |
c8454271 | 18-Apr-2015 |
Nikita Popov |
Make column info 1-based |
62f83a0d | 18-Apr-2015 |
Nikita Popov |
Add column info for non-syntax errors where relatively precise Should it also be added if only rough information is available? E.g. spanning an entire class? |
611fa5c7 | 18-Apr-2015 |
Nikita Popov |
Test parser position information (syntax errors) |
4defbc21 | 18-Apr-2015 |
Nikita Popov |
Make Error column info attribute based |
33a39fae | 14-Apr-2015 |
Gerrit Addiks |
added column-numbers to syntax errors |
e4eab9ec | 03-Apr-2015 |
Nikita Popov |
Simplify code The new class couldn't already exist at that point - if it did, the old name would have been aliased already and the autoloader wouldn't trigger. |
6aaa87f1 | 03-Apr-2015 |
Nikita Popov |
Fix PHP 7 alias registration This fixes the case where the old name is used before the new one is ever used, e.g. when manually constructing nodes, as opposed to parsing them.
Fix PHP 7 alias registration This fixes the case where the old name is used before the new one is ever used, e.g. when manually constructing nodes, as opposed to parsing them. The previous approach would try to register the alias from OLD to NEW. This would trigger autoloading on NEW and afterwards it would register the alias from OLD to NEW. Afterwards the alias registration which originally triggered the autoload would run, thus redeclaring the class. TL;DR aliases suck, closes #192.
show more ...
|
08f97eb4 | 03-Apr-2015 |
Nikita Popov |
Release PHP-Parser 1.2.2 |
8d18848f | 03-Apr-2015 |
Markus Malkusch |
Don't set unserialize_callback_func in Autoloader::register() as it has side effects even when the library is not used |
805078e0 | 28-Mar-2015 |
Nikita Popov |
Add missing type hints |
52dafafd | 25-Mar-2015 |
Nikita Popov |
Resolve param type hints earlier For convenience of concurrent visitors that want to perform enterNode actions based on Stmt\Function_ etc. Fixes #188. |
dba7524b | 24-Mar-2015 |
Nikita Popov |
Release PHP-Parser 1.2.1 |
617bf0aa | 24-Mar-2015 |
Nikita Popov |
Fix registering of PHP 7 aliases The previous approach was causing issues, because "instanceof" does not invoke the autoloader. |
dce19b07 | 23-Mar-2015 |
Nikita Popov |
Strict type compliance Were this library to be fully annotated with scalar types and return types where possible and were strict types to be enabled for all files, the test suite wou
Strict type compliance Were this library to be fully annotated with scalar types and return types where possible and were strict types to be enabled for all files, the test suite would now pass.
show more ...
|