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
- npm install
client/serverdependencies, run Extension - open PHP file from
examplefolder, and*.astfile to the side - check out error information, and corresponding AST
- make some changes, and save to view updates
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.parserPathto the absolute directory of thetolerant-php-parser/srcfolder. This will enable you to easily debug the parser during development.
