One evening a while back I took a stab to see if antlr v3 would work. These .g files made it through antlr. They didn't compile and I didn't/haven't done much subsequent investigating to discover why. The .g conversions where mostly done with emacs editor macros and a sledghammer.