I am building a program that will completely inspect a JS source file and providing details about the code, structure and elements (variables, functions, objects). Ultimately this tool could be used as a customizable lint tool, a JS Doc, or anything else that needs a comprehensive outline of the code.
I originally started this project using SpiderMonkey and after making substantial progress, I realized that I'm not much of a C programmer and would be better off doing it in Java. Unfortunately I cannot seem to find a way to get to the token stream or parser API, it all seems to be set private. Is there a way, to get this information in SpiderMonkey? From what I've read it looks like I can get to all the functions, but I also need to know the variables and how the functions are used in order to get a complete view of the script. Are there any good examples of this? Thanks _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
