tolerant-php-parser icon indicating copy to clipboard operation
tolerant-php-parser copied to clipboard

An early-stage PHP parser designed for IDE usage scenarios.

Results 68 tolerant-php-parser issues
Sort by recently updated
recently updated
newest added
trafficstars

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

feature

**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),...

bug

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

bug
grammar
error-handling

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: ![image](https://user-images.githubusercontent.com/11234139/27002704-453bb168-4de8-11e7-9b72-c179c7ac00e6.png) Test script: ```php

bug

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

feature
lang-server-regression

See http://keepachangelog.com/