Support PHP-Parser in the PHPAST application
Summary:
The PHPAST application allows viewing the xhpast token stream and AST.
It now also supports PHP-Parser generated ASTs and token streams.
Ref T16289
Test Plan:
* Apply D26522
* Enable prototypes via http://phorge.localhost/config/edit/phabricator.show-prototypes/
* Run `./bin/storage upgrade` to apply the database change
* Go to http://phorge.localhost/xhpast/ and click on the new "Use PHPAST" button in the top right
* Enter some PHP code
* Observe output and compare by doing the same on http://phorge.localhost/xhpast/
* After finishing testing this patch, `DROP TABLE {$NAMESPACE}_xhpast.phpast_parsetree; DELETE FROM phabricator_meta_data.patch_status WHERE patch = "phabricator:20251124.phpast.parsetree.sql";`
Reviewers: O1 Blessed Committers, aklapper
Reviewed By: O1 Blessed Committers, aklapper
Subscribers: aklapper, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno
Maniphest Tasks: T16289
Differential Revision: https://we.phorge.it/D26523