tolerant-php-parser
tolerant-php-parser copied to clipboard
An early-stage PHP parser designed for IDE usage scenarios.
Example: ```php
E.g. to `tools` or `bin` This will help people who are developing libraries using this parser, as well as trying to debug the behavior on a given file/snippet. I didn't...
**Summary** A function name must be a `T_STRING` token (or whatever its equivalent is in this parser). Sample code: `function empty() {}` **Expected** `Parse error: syntax error, unexpected 'empty' (T_EMPTY),...
Attached below is the code that was identified as needing a closing brace. The plug-in marked the end of the file as the point needing the brace [index.txt](https://github.com/Microsoft/tolerant-php-parser/files/2624815/index.txt)
_From @p810 on June 12, 2018 15:3_ Given the following code: ```php
Noticed while looking at [example 4](https://github.com/Microsoft/tolerant-php-parser/blob/master/docs/HowItWorks.md#example-4): In PHP an expression like `$a == $b = $c` is parsed as `$a == ($b = $c)`, because this is the only valid...
I used to review PR for my company newbies is a horrible things, especially coding style. Last year I found this parser, I decided to make a linter tool base...
See:  Test script: ```php
The parser currently emits few diagnostics beyond general syntax errors, but it has always been the plan to walk the tree and emit more. We may want to bring it...
See http://keepachangelog.com/