Skip to content

Commit b062464

Browse files
authored
Merge pull request nikic#99 from TysonAndre/tolerant-php-parser
Update the link to a fallback for php-ast
2 parents bc4ccdc + cd4b707 commit b062464

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
@@ -549,8 +549,9 @@ There are a number of differences in the AST representation and available suppor
549549
* AST traversal / visitation: There is currently no standalone package for this either, but
550550
implementing a recursive AST walk is easy.
551551

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

@@ -559,6 +560,7 @@ for code with syntax errors.
559560
[test_dump]: https://github.com/nikic/php-ast/blob/master/tests/001.phpt
560561
[php-parser]: https://github.com/nikic/PHP-Parser
561562
[php-ast-reverter]: https://github.com/tpunt/php-ast-reverter
562-
[php-parser-to-php-ast]: https://github.com/tysonandre/php-parser-to-php-ast
563+
[tolerant-php-parser]: https://github.com/Microsoft/tolerant-php-parser
564+
[tolerant-php-parser-to-php-ast]: https://github.com/tysonandre/tolerant-php-parser-to-php-ast
563565
[v0_1_x]: https://github.com/nikic/php-ast/tree/v0.1.x#php-ast
564566
[v0_1_x_versions]: https://github.com/nikic/php-ast/tree/v0.1.x#ast-versioning

0 commit comments

Comments
 (0)