Re: Groovy?
bob mcwhirter <[email protected]>
| Newsgroups | gmane.comp.java.beanshell.user,gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 29 Jan 2004, Pat wrote: > Just curious if anyone is familiar with Groovy, the Java based scripting > language. Ayup. :) > I'm wondering how it compares to BeanShell... good and bad, what can we learn > from it, etc. It doesn't aim to be java compliant, so comparison to BeanShell would be somewhat apples-to-oranges. If I want Java scripting, I still turn to BSH. If I want something more like python/ruby scripting that happens to run on the JVM, then I use Groovy. One thing you BSH could do (if it doesn't already in 2.0; I'm still on 1.3 or whatnot), is expose the AST. I use both Groovy and BSH in Drools, and with Groovy, it's easy to get and walk the AST in order to do analysis on the expressions. With BSH, alas, I've had to add a phase of parsing and analysis using an out-board ANTLR-based parser, since I couldn't get ahold of the ASTs built by BSH. Double-parsing isn't fun. :) -bob (Developer of the Groovy parser) ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn