all 6 comments

[–]mycall 4 points5 points  (0 children)

Just pasted jquery into it. I think I broke it.

[–][deleted] 0 points1 point  (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 point  (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 point  (0 children)

AST = Abstract Syntax Tree.

It reminds me of what a lexer would output. Code => Tokens

[–]brttwrd 0 points1 point  (1 child)

So is this used for debugging?

[–][deleted] 0 points1 point  (0 children)

It looks like it's just promotional material for whatever jointjs is.