35ec1855 | 08-Jun-2012 |
nikic |
Make $line argument for Comment optional Also add setLine() method. |
0911b2e1 | 06-Jun-2012 |
Jon Cave |
Add line number information to comments Line numbers are stored in the $line property of the PHPParser_Comment and PHPParser_Comment_Doc classes and can be retrieved with getLine(). |
3f66b7ec | 12-May-2012 |
nikic |
Update changelog |
e16513a0 | 12-May-2012 |
nikic |
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
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.
show more ...
|
25bbd699 | 11-May-2012 |
nikic |
Improve some formatting |
10fc22f5 | 11-May-2012 |
nikic |
Replace \N with . Older PCRE versions (coming with PHP 5.2) don't support \N yet. |
93392c82 | 11-May-2012 |
nikic |
Fix getAttribute signature in Node interface This fixes a build failure on PHP 5.2. |
dab2fd4b | 11-May-2012 |
nikic |
Fix comment reformatting on Linux Remove the use of \R (with BSR_ANYCRLF) at two places, as it was causing problems there. |
cc4b8761 | 11-May-2012 |
nikic |
Update CHANGELOG |
4f9dd7b1 | 11-May-2012 |
nikic |
Add more extensive Lexer component docs |
107c7a26 | 11-May-2012 |
nikic |
Update docs |
81e53ce0 | 11-May-2012 |
nikic |
Insert comments when pretty printing This changset also adds unit tests for Comments and adds a way to test the pretty printer. |
a824a2ab | 06-May-2012 |
nikic |
Fix $node->getDocComment() getDocComment() now returns the last comment (given that it is a doc comment). setDocComment() no longer exists, as it doesn't make sense with the comment
Fix $node->getDocComment() getDocComment() now returns the last comment (given that it is a doc comment). setDocComment() no longer exists, as it doesn't make sense with the comment objects anymore. getAttribute() now returns by reference, so it also works in reference contexts.
show more ...
|
9d96dd17 | 06-May-2012 |
nikic |
Adjust XML unserializer for new comments attribute |
603582fe | 06-May-2012 |
nikic |
Add test coverage for two things |
e587e3f4 | 06-May-2012 |
nikic |
Collect normal comments too, not only doc comments Comments and doc comments are now saved in the 'comments' attribute, as an array. The are instances of PHPParser_Comment[_Doc]. |
dd711f2a | 05-May-2012 |
nikic |
Generalize the attribute generation for nodes Now two arrays are fetched from the lexer: $startAttributes and $endAttributes. When constructing the attributes for a node, the $startA
Generalize the attribute generation for nodes Now two arrays are fetched from the lexer: $startAttributes and $endAttributes. When constructing the attributes for a node, the $startAttributes from the first token of the node and the $endAttributes of the last token of the node are merged. Now the end line is saved in the endLine attribute.
show more ...
|
5438cc0d | 05-May-2012 |
nikic |
Add progress indicator for test_old. I hate waiting for something without seeing at least *some* output. |
101a6ddc | 04-May-2012 |
nikic |
Fix NameResolver to properly copy attributes |
2f5ebf7c | 29-Apr-2012 |
nikic |
Store line and doc comment as attributes |
c3cf3f29 | 29-Apr-2012 |
nikic |
Adjust test_old to use new Lexer injection method |
f66a672d | 29-Apr-2012 |
nikic |
Start refactoring parser skeleton The yacc parser skeleton with all those odd $yy short names is quite non-obvious. This commits starts to refactor it a bit, to use more obvious name
Start refactoring parser skeleton The yacc parser skeleton with all those odd $yy short names is quite non-obvious. This commits starts to refactor it a bit, to use more obvious names and logic.
show more ...
|
3701e02d | 25-Apr-2012 |
nikic |
Use inject-once approach for lexer Now the lexer is injected only once when creating the parser. Instead of $parser = new PHPParser_Parser; $parser->parse(new PHPParser_
Use inject-once approach for lexer Now the lexer is injected only once when creating the parser. Instead of $parser = new PHPParser_Parser; $parser->parse(new PHPParser_Lexer($code)); $parser->parse(new PHPParser_Lexer($code2)); you write: $parser = new PHPParser_Parser(new PHPParser_Lexer); $parser->parse($code); $parser->parse($code2);
show more ...
|
271156f9 | 24-Apr-2012 |
nikic |
Fix typo |
f33cd97a | 04-May-2012 |
nikic |
Merge pull request #22 from schmittjoh/resolveCatchType fixes a bug where catch type was not resolved
|