Simple demo showing how to use esprima to create an abstract syntax tree, estraverse to traverse it, and escodegen to turn it back into code.
- clone repo
- npm install
http://esprima.org/demo/parse.html http://tobyho.com/2013/12/02/fun-with-esprima/
Simple demo showing how to use esprima to create an abstract syntax tree, estraverse to traverse it, and escodegen to turn it back into code.
http://esprima.org/demo/parse.html http://tobyho.com/2013/12/02/fun-with-esprima/