Subj : Rhino script decompile/rebuild from tree To : netscape.public.mozilla.jseng From : BegemoT Date : Thu Aug 25 2005 02:06 pm Good day, all. I use Rhino js-engine in my application, and I need the ability to apply some sintax changes in user scripts -- like rename some variables -- and then obtain text representation of this script (to allow user to edit it). So, I need the way to parse script, change script's sintax tree, and rebuild script text from this tree -- this last step is the trouble: how can I rebuild source script having Rhino sintax tree? Is it any way to save comments and, possible, formating of primary sources? Thanks in advance! Sincerely, Cheremin Ruslan .