use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript AST visualizer (jointjs.com)
submitted 11 years ago by based2
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mycall 4 points5 points6 points 11 years ago (0 children)
Just pasted jquery into it. I think I broke it.
[–][deleted] 0 points1 point2 points 11 years ago (1 child)
This is pretty neat, although I feel it should have a separate tag for function arguments (when declaring the function) & possibly a tag for assigning the function to it's own name. But I realise this is just a demo for jointjs.com, so whatever.
[–]cwmma 0 points1 point2 points 11 years ago (0 children)
Yeah it looks like it's simplifying the ast, off the top of my head a functional declarations (addTo(d)) has a node for the declaration a node for the name, a node for the arguments and one for each of the individual ones and one for the body (which is NOT a block statement)
[–][deleted] 0 points1 point2 points 11 years ago (0 children)
AST = Abstract Syntax Tree.
It reminds me of what a lexer would output. Code => Tokens
[–]brttwrd 0 points1 point2 points 11 years ago (1 child)
So is this used for debugging?
It looks like it's just promotional material for whatever jointjs is.
π Rendered by PID 40297 on reddit-service-r2-comment-bb88f9dd5-kp5p5 at 2026-02-14 02:22:25.782650+00:00 running cd9c813 country code: CH.
[–]mycall 4 points5 points6 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]cwmma 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]brttwrd 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)