[antlr-interest] Groovy 1.0 released

Jeremy Rayner jeremy.rayner at gmail.com
Thu Jan 4 02:46:08 PST 2007


Hiya,
  Just wanted to share our success story with antlr...

Groovy 1.0 has just been released (
http://javanicus.com/blog2/items/204-index.html )
and it is using antlr 2.7.2 for the language parser.

* I took as the base the Studman java.g grammar (v1.22.4) which
includes Java1.5 syntax, and built groovy.g which includes the
syntactic sugar for common user tasks (creating maps etc) and all the
other groovy stuff.

* I have created a visitor with separate tree traversal for navigating
the CST, and can successfully walk the tree and output
- valid groovy (pretty printer)
- coloured source in html
- mindmap representation of CST (in freemind format)

* I have also written a java2groovy tool which uses the original
java.g to read in java sources, convert the java CST to a groovy CST,
and then output again using the groovy pretty printer.
  http://javanicus.com/blog2/items/203-index.html

Antlr has given Groovy a solid, deterministic grammar, thanks soo much Ter!

I'll be giving a talk on these topics in London on 25 Jan, so maybe
see some of you there
  free signup -> http://www.skillsmatter.com/groovy-grails-ug

Cheers,
Jez.
-- 
Groovy Engineer
http://javanicus.com/blog2


More information about the antlr-interest mailing list