Abstract Syntax Tree.. I always heard that compile to SpiderMonkey AST on Github.
So, is that a actual standard of JS syntax tree? And there's V8, is V8 using the same kind of AST?
How can I play with that?
1.You can take a look at AST explorer. An online tool to explore the ASTs generated by more than 10 parsers. It is a good tool to learn AST tree of a language.
AST explorer source at Github.com.
2.Also you can paste your js code into JavaScript AST visualizer and click "show ast" button, you will see the AST visully.
demo js code:
function foo(d) {
d += 3;
return d+999
}
function bar(d) {
return d*100
}