ca842b44ba | ||
---|---|---|
.. | ||
client | ||
example | ||
server | ||
License.txt | ||
README.md |
README.md
PHP Parser Syntax Visualizer Tool
Overview
VSCode Extension that demonstrates some of the basic usage and functionality of the parser.
- writes AST to adjacent *.ast file using JSON representation
- Error squigglies
Instructions
- npm install
client
/server
dependencies, run Extension - open PHP file from
example
folder, and*.ast
file to the side - check out error information, and corresponding AST
- make some changes, and save to view updates
Settings
php.syntaxVisualizer.parserPath
: set this path to use a different parser version than the one bundled with the syntax visualizer. For instance, aftergit clone https://github.com/Microsoft/tolerant-php-parser
, setphp.syntaxVisualizer.parserPath
to the absolute directory of thetolerant-php-parser/src
folder. This will enable you to easily debug the parser during development.