Tools - mattacosta/php-parser GitHub Wiki
Shows the abstract syntax tree generated by PHP.
Prerequisites:
- Download and enable the php-ast extension
in your
php.ini
file. - Copy the
util.php
file to thetools/
directory.
Usage:
parse.php (<file>|<code>)
Shows how PHP tokenizes source code. These tokens are dependent on the version of PHP being used.
Usage:
tokenize.php (<file>|<code>)
Parses all files in a given directory and outputs all warnings and errors.
Usage:
node out/tools/validator/program.js <path>