File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,28 @@ PHP-Parser to php-ast
33
44[ ![ Build Status] ( https://travis-ci.org/TysonAndre/php-parser-to-php-ast.svg?branch=master )] ( https://travis-ci.org/TysonAndre/php-parser-to-php-ast )
55
6- This is incomplete. Only 6 of 28 tests are passing.
6+ 5 out of 28 tests are failing, and only due to line numbers being wrong in php-ast. This is fixed in php 7.1-dev (will be in 7.1.4)
7+
8+ [ Current Issues] ( https://github.com/TysonAndre/php-parser-to-php-ast/issues/ )
9+
10+ - The test suite this is based off of is not comprehensive, and edge cases still remain.
11+ See https://github.com/TysonAndre/php-parser-to-php-ast/issues/4
12+
13+ Usage
14+ -----
15+
16+ Using it as a slow substitute for php-ast
17+
18+ - [ tests/ASTConverter/ConversionTest.php] ( https://github.com/TysonAndre/php-parser-to-php-ast/blob/master/tests/ASTConverter/ConversionTest.php )
19+
20+ Using it as an error-tolerant substitute for php-ast (e.g. for use in IDEs)
21+
22+ - There are currently two modes: omitting errors and adding placeholders (e.g. ` __INCOMPLETE_VARIABLE__ ` ).
23+ - Omitting errors only handles some common cases that come up while editing a file.
24+ - Placeholders may change in the future.
25+ - [ tests/ASTConverter/ErrorTolerantConversionTest.php] ( https://github.com/TysonAndre/php-parser-to-php-ast/blob/master/tests/ASTConverter/ErrorTolerantConversionTest.php )
26+
27+ Possible Future Enhancements
28+ ----------------------------
29+
30+ - https://github.com/Microsoft/tolerant-php-parser/issues/113
You can’t perform that action at this time.
0 commit comments