tolerant-php-parser
tolerant-php-parser copied to clipboard
An early-stage PHP parser designed for IDE usage scenarios.
I think the assert for "Supplied TextEdit[] must not overlap, and be in increasing start position order." should be an exception. From #158

PHP has native interfaces and classes for Iterators (`Generator` implements `Iterator`). Iterators can be traversed with `foreach` and composed easily, for example by filtering through [`CallbackFilterIterator`](http://de2.php.net/manual/en/class.callbackfilteriterator.php). In particular, it has...
This would be simple once #88 is implemented (trailing trivia == leading trivia of the next token)
The API is shifting around quite a bit right now, so this'll help us ensure things stay in sync.
This error tolerance case needs some special handling. ```php class A { function b() { if ($expression { $a = 3; $b = "hello"; } echo "hi"; } public function...
The code below is currently improperly parsed without errors. ```php class A { use \A { \a as b; \b insteadof C; } } ```
The PHP spec was a bit open to interpretation at times, so it'll be good to have a second pass, and should be a good opportunity to add more tests....
We are currently at ~98.5% pass rate on framework validation tests (a test fails if there is an error present in the tree for known valid code). We should inspect...
While looking at an example related to #19, I also came across this new bug: Sample code: `$c =& $a + $b` Expected: `($c =& $a) + $b` Actual: `$c...