Subj : Re: rhino: question on accessing name table; also maybe an answer To : netscape.public.mozilla.jseng From : Igor Bukanov Date : Mon Jun 28 2004 05:05 pm Donald Ball wrote: > A question: I'm interested in parsing a javascript expression to get a > set of all variables therein. Simple things of the form: > > (foo > 5 && bar == 1) > > I've poked through the javadocs and the mailing list history but > couldn't find anything obvious for this. Any suggestions? To get the set of top-level properties that the script query or set you have to walk the parse tree. This is not a part of public API and changes between Rhino releases but this is the only way to achieve that currently. Regards, Igor .