#
ba851243 |
| 13-Aug-2023 |
Nikita Popov |
Replace startLexing() with tokenize() For now Lexer::getTokens() still exists, but should probably be removed.
|
#
dd63ddbc |
| 28-Aug-2022 |
Nikita Popov |
Add php-cs-fixer config and reformat The formatting in this project has become something of a mess, because it changed over time. Add a CS fixer config and reformat to the desired st
Add php-cs-fixer config and reformat The formatting in this project has become something of a mess, because it changed over time. Add a CS fixer config and reformat to the desired style, which is PSR-12, but with sane brace placement.
show more ...
|
#
653757be |
| 04-Jul-2022 |
MathiasReker |
Nullable type declaration for default null value Adds ? before type declarations for parameters with a default null value
|
#
5aae65e6 |
| 19-Jun-2022 |
Nikita Popov |
Add Parser::getLexer() method Not sure if this is going to stick, but for now this makes it easier to obtain the Lexer instance when creating the parser via ParserFactory.
|
#
9c5eb3cc |
| 04-Jun-2022 |
Nikita Popov |
Add some missing type annotations
|
Revision tags: v4.3.0, v4.2.5, v4.2.4, v4.2.3, v4.2.2, v4.2.1, v4.2.0, v4.1.1, v4.1.0, v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v3.1.5, v4.0.0beta1, v3.1.4 |
|
#
7f72c841 |
| 10-Jan-2018 |
Gabriel Caruso |
[CS] Open class brackets in new line
|
Revision tags: v4.0.0alpha3, v3.1.3, v4.0.0alpha2, v3.1.2, v4.0.0alpha1, v3.1.1 |
|
#
e2e99f26 |
| 18-Aug-2017 |
TomasVotruba |
Add strict_types to lib code
|
Revision tags: v3.1.0, v3.0.6 |
|
#
a32e3797 |
| 28-Apr-2017 |
Nikita Popov |
Generate PHP 7 type annotations
|
Revision tags: v3.0.5, v3.0.4, v3.0.3 |
|
#
ced914a3 |
| 19-Jan-2017 |
Nikita Popov |
Update doc comments to be more specific Now $stmts arrays really only contains Stmt nodes.
|
Revision tags: v3.0.2, v3.0.1, v3.0.0, v3.0.0beta2 |
|
#
f99a96e0 |
| 09-Oct-2016 |
Nikita Popov |
Introduce ErrorHandler Add ErrorHandler interface, as well as ErrorHandler\Throwing and ErrorHandler\Collecting. The error handler is passed to Parser::parse(). This supersedes the t
Introduce ErrorHandler Add ErrorHandler interface, as well as ErrorHandler\Throwing and ErrorHandler\Collecting. The error handler is passed to Parser::parse(). This supersedes the throwOnError option. NameResolver now accepts an ErrorHandler in the ctor.
show more ...
|
Revision tags: v3.0.0beta1, v2.1.1, v3.0.0alpha1, v2.1.0, v2.0.1, v2.0.0, v2.0.0beta1, v1.4.1 |
|
#
950ada4c |
| 19-Sep-2015 |
Nikita Popov |
Fix issue #227 Use \z instead of $.
|
Revision tags: v2.0.0alpha1, v1.4.0 |
|
#
f2b7a315 |
| 20-Jun-2015 |
Nikita Popov |
Rename ParserInterface to Parser And drop the alias of Parser to Parser\Php5.
|
#
51ec2a25 |
| 02-May-2015 |
Nikita Popov |
Move parser to Parser\Php5 Old name still exists.
|
#
9d42e4a2 |
| 02-May-2015 |
Nikita Popov |
Drop short array simulation from .phpy syntax Instead use real short array syntax.
|
Revision tags: v1.3.0 |
|
#
57ac7e39 |
| 30-Apr-2015 |
Nikita Popov |
Drop name magic from rebuildParser.php Now using explicitly imported names, instead of magically prepending Name\. Also remove trailing whitespace from generated file.
|
#
3b7d8e8b |
| 30-Apr-2015 |
Nikita Popov |
Enable basic error recovery Adding only a single recovery rule for now. The API is now: * throwOnError parser option must be disabled. * List of Errors is available throug
Enable basic error recovery Adding only a single recovery rule for now. The API is now: * throwOnError parser option must be disabled. * List of Errors is available through $parser->getErrors(). This method is available either way. * If no recovery is possible $parser->parse() will return null. (Obviously only if throwOnError is disabled).
show more ...
|
#
e1a0ec37 |
| 26-Apr-2015 |
Nikita Popov |
Add support for anonymous classes Has not landed upstream yet, but syntax is unlikely to change.
|
#
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 ...
|
#
7a40498c |
| 19-Apr-2015 |
Nikita Popov |
Regenerate parser Also drop the error() parser macro.
|
#
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?
|
Revision tags: v1.2.2, v1.2.1, v1.2.0 |
|
#
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.
|