Skip to content
Matt Acosta edited this page Nov 25, 2017 · 1 revision

parse.php

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 the tools/ directory.

Usage:

parse.php (<file>|<code>)

tokenize.php

Shows how PHP tokenizes source code. These tokens are dependent on the version of PHP being used.

Usage:

tokenize.php (<file>|<code>)

Validator/Program.ts

Parses all files in a given directory and outputs all warnings and errors.

Usage:

node out/tools/validator/program.js <path>
Clone this wiki locally