To give it a try, go to Esprima live parser demo:
http://esprima.org/demo/parse.html (make sure you use the 'Tree' tab).
Comments and feedback are welcomed. Have some fun!
Regards,
--
Ariya Hidayat, http://ariya.ofilabs.com
http://twitter.com/ariyahidayat
This is very cool, but it comes with a performance limitation. I have absolutely no problem using the demo tool in standard syntax mode. However, the tree graph failed on a 6300 line function that I tried and failed again on a 2200 line function. It worked just fine for me on a small 100 line function though.
I will try again later when I have access to a real computer with more than merely 2gb of ram.
Thanks,
Austin Cheney, CISSP, Security+, TS/SCI
Senior Site Optimization Technologist/Analyst
If there is an alternative (and liberally licensed) to YUI TreeView
which can deal with large object, I'll be open to change the tree view
component.
Also if I use the tree view incorrectly, I'm happy to accept speed-up patches :)
Don't know about their performance.