Subj : Need to walk the JavaScript parse tree To : netscape.public.mozilla.jseng From : x_coder@hotmail.com (Lyle Coder) Date : Mon May 12 2003 01:16 pm After a JavaScript section has been parsed, I need to walk the parse tree and re-generate the JavaScript (create a new string that contains the original program). The reason I do this is because I look for certain key words and perform some operation on them What is the best way to do this? I am current looking at the function CompileTokenStream, which calls "Statements". The result is a JSParseNode. I assume I can walk that some how and re-create the original JS program? Thanks Lyle .