Re: BeanShell alternatives (was Re: Status of projectand adding 1.5 generics)
Tom Copeland <[email protected]> Sat, 13 Dec 2008 11:03:13 -0500
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <[email protected]> |
On Dec 13, 2008, at 9:51 AM, Nigel Galloway wrote: > This subject arose 18 months ago. See for my feelings at the time: > > http://sourceforge.net/mailarchive/message.php?msg_id=148438.29107.qm%40web60019.mail.yahoo.com > > Beanshell uses javacc to parse the input. The syntax file it uses > has developed over time and contains many look aheads and > exceptions. It is inefficient and difficult to change. Compare it > with the syntax file distributed now with javacc for parsing Java 6. > Any syntax changes to Beanshell would probably be best done by > replacing its syntax file with a new one based on the official Java > 6 one. At the least, we could regenerate the parser using a recent version of JavaCC. Newer versions of JavaCC generate more optimized parsers, including parser code that uses various Java 1.5 language features. (*) Yours, Tom (*) Although JavaCC 4.2 had some problems in this regard: http://tomcopeland.blogs.com/juniordeveloper/2008/12/a-small-fix-for-javacc-42s-code-generation.html ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/