Skip to content

Commit cd4b707

Browse files
committed
Update the link to a fallback for php-ast
TysonAndre/php-parser-to-php-ast isn't actively maintained right now, doesn't have any projects using it, and doesn't support PHP-Parser 4. The other polyfill has had more work done for detecting edge cases, and handling incomplete ASTs.
1 parent 7fe259e commit cd4b707

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,9 @@ There are a number of differences in the AST representation and available suppor
538538
* AST traversal / visitation: There is currently no standalone package for this either, but
539539
implementing a recursive AST walk is easy.
540540

541-
The [php-parser-to-php-ast][php-parser-to-php-ast] project can convert the AST produced by
542-
PHP-Parser into the format used by the php-ast extension. This can be used as a slow fallback in
541+
The [tolerant-php-parser-to-php-ast][tolerant-php-parser-to-php-ast] project can convert the AST produced by
542+
[tolerant-php-parser][tolerant-php-parser] (Another pure PHP parser library) into the format used by the php-ast extension.
543+
This can be used as a slow fallback in
543544
case the php-ast extension is not available. It may also be used to produce a partial php-ast output
544545
for code with syntax errors.
545546

@@ -548,6 +549,7 @@ for code with syntax errors.
548549
[test_dump]: https://github.com/nikic/php-ast/blob/master/tests/001.phpt
549550
[php-parser]: https://github.com/nikic/PHP-Parser
550551
[php-ast-reverter]: https://github.com/tpunt/php-ast-reverter
551-
[php-parser-to-php-ast]: https://github.com/tysonandre/php-parser-to-php-ast
552+
[tolerant-php-parser]: https://github.com/Microsoft/tolerant-php-parser
553+
[tolerant-php-parser-to-php-ast]: https://github.com/tysonandre/tolerant-php-parser-to-php-ast
552554
[v0_1_x]: https://github.com/nikic/php-ast/tree/v0.1.x#php-ast
553555
[v0_1_x_versions]: https://github.com/nikic/php-ast/tree/v0.1.x#ast-versioning

0 commit comments

Comments
 (0)