I would like to use Rhino (if possible) to instrument some Javascript
code. This means I would need to use the Rhino parser to create an
AST, then modify this AST and somehow print out Javascript source code
again. Is this possible? Where can I find the documentation I would
need?
Regards,
Frank Groeneveld
I've started this project by using the newest cvs code that includes
the better AST stuff. I think the only problem I will hit is the fact
that I can't decompile the modified AST. Did anybody ever try to
create a decompile function for a modified AST?
Regards,
Frank Groeneveld
Attila.
Sorry, I wasn't clear on that. I need to add instrumentation code to
javascript files and then produce new javascript files (with the
instrumentation code), so that they can be run in a web browser.
Frank
Frank