Subj : Adding 'goto' statement to Rhino To : netscape.public.mozilla.jseng From : junk@truecode.org (Josh Gertzen) Date : Wed Apr 07 2004 12:20 pm Hi, The company I give blood to :) is in the process of revamping most of there core technology, which currently includes a less-than-stellar proprietary scripting language. I have successfully made the case that Rhino can serve as a replacement for the in-house language as well as provide the company with many additional benefits. However, since we have many scripts written in the in-house language, a conversion process is being put together which will parse the old scripts and write them out in JavaScript. (Obviously there is more to it than that, but work with me here) Unfortunately, 'goto' statements are used excessively in the scripts. Therefore, for the conversion to work I have to add 'goto' & 'label' statement support to Rhino. So I opened up the Rhino code, but before I go any further I just wanted to get some input from the group: 1. Has this already been done by someone? If so are the changes available somewhere? 2. Since there is already support for loop labels and break's with labels such as [restart: while(true) break restart;], could I simple piggy-back on the interals of this? 3. What files/areas should I be looking to make such a change in? 4. Is there any pitfalls that I should know about? Thanks for any help, -Josh .