History log of /PHP-Parser/ (Results 1201 – 1225 of 1690)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
e1a0ec3726-Apr-2015 Nikita Popov

Add support for anonymous classes

Has not landed upstream yet, but syntax is unlikely to change.

66896dbd26-Apr-2015 Nikita Popov

Poison attribute initializations in parser

Those should error if they end up being used.

338bc1f826-Apr-2015 Nikita Popov

Fix "print" pretty-printing

Precedence was previously ignored.

ab80054e26-Apr-2015 Nikita Popov

Add support for "yield from"

a6d2cd6923-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 ...

6996db1e22-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 ...

a5477a4e19-Apr-2015 Graham Campbell

Version bump

7a40498c19-Apr-2015 Nikita Popov

Regenerate parser

Also drop the error() parser macro.

65f1adbe02-Feb-2015 Nikita Popov

Merge primary error recovery code

The grammar does not yet actually implement error recovery.

c845427118-Apr-2015 Nikita Popov

Make column info 1-based

62f83a0d18-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?

611fa5c718-Apr-2015 Nikita Popov

Test parser position information (syntax errors)

4defbc2118-Apr-2015 Nikita Popov

Make Error column info attribute based

33a39fae14-Apr-2015 Gerrit Addiks

added column-numbers to syntax errors

e4eab9ec03-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.

6aaa87f103-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 ...

08f97eb403-Apr-2015 Nikita Popov

Release PHP-Parser 1.2.2

8d18848f03-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

805078e028-Mar-2015 Nikita Popov

Add missing type hints

52dafafd25-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.

dba7524b24-Mar-2015 Nikita Popov

Release PHP-Parser 1.2.1

617bf0aa24-Mar-2015 Nikita Popov

Fix registering of PHP 7 aliases

The previous approach was causing issues, because "instanceof"
does not invoke the autoloader.

dce19b0723-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 ...

edbf162e22-Mar-2015 Nikita Popov

Release PHP-Parser 1.2.0

b23c53df22-Mar-2015 Nikita Popov

Update CHANGELOG

1...<<41424344454647484950>>...68