Skip to content

context-driven-testing-toolkit/js-ast-diagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Abstract Syntax Tree Diagram

This shell script uses Google Closure Compiler and Graphviz to draw a diagram of the AST of any JavaScript file.

For instance for a file called hello.js that contains these two lines of code:

let hiWorld = 'hello world!';

console.log(hiWorld);

The script would produce the following AST diagram as a PNG file named ./hello.js_ast_diagram.png

the abstract syntax tree of the JavaScript code shown above

About

Draw an AST diagram of any JavaScript file, using the Google Closure Compiler and GraphViz.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages