So, here's my problem:
I'm trying to format a js code, so I parse the code with Rhino and
then I want to rebuild it from the syntax tree.
I know that there is this decompile function in the Decompiler class
that should return the source from the parser as a string.
This is what I need but I don't know how to connect the result of the
parser with the decompiler.
The result I get from the parse function in the Parser class is of
type ScriptOrFnNode, and the input types of the decompile function are
String source, int flags, UintMap properties.
Can you help me with that by giving me an example of how to use the
result of the parser in the decompiler, or maybe how to use the
decompiler itself?

I have a tight deadline, so I would appreciate any help.

Thank you in advance.

Best regards,
Tina
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to