JavaScript syntax tree visualization with Esprima Apr 4, 2012 2 min read #code #esprima #javascript #parser One little feature I added to Esprima parser demo was syntax tree visualization (using YUI TreeView). While it is already possible to see the JSON version of the parsed AST, often a much more visual representation improves the syntax analysis workflow. It is also more educational. An example
![JavaScript syntax tree visualization with Esprima · ariya.io](https://cdn-ak-scissors.b.st-hatena.com/image/square/c5685f12f67708b8b90ca46c483b7dbdea6680e1/height=288;version=1;width=512/https%3A%2F%2Fariya.io%2Fimages%2F2012%2F03%2Fparsetree.png)