[antlr-interest] v3 Java 1.5 grammar

Jan Hinzmann jan-oliver.hinzmann at dlr.de
Tue Feb 27 01:34:51 PST 2007


Hi Chris,

I'm using the Java5 grammar found at:

http://www.antlr.org/grammar/list
http://www.antlr.org/grammar/1147455993609/Java5.zip

>Java 1.5 + Java preprocessor 
>Luca Colombi Fri May 12, 2006 10:46
>The grammar submitted by Michael Studman and revised by Scott Wisniewski, 
>adapted to compile without error also in eclipse with antlr plugin and jdk 
>1.5, and the java preprocessor ported in Java as a subclass of Reader.


In the Changelog (at the beginning of the file) you find this statements:

> ...
>* Version 1.22.5 (January 03, 2005)
> *    Small change to tree structure
> *    o Flattened classOrInterfaceType tree so IDENT no longer has children. 
>TYPE_ARGUMENTS are now
> *      always siblings of IDENT rather than children. Fully.qualified.names 
>trees now
> *      look a little less clean when TYPE_ARGUMENTS are present though.
> *
> ...

On Monday 26 February 2007 17:06, Chris Hogue wrote:
> Has there been any more recent work on the v3 Java 1.5 example
> grammar?  I found a number of problems with it that I've fixed so that
> it now runs through the whole 1.5 JDK as well as a number of other
> open source projects.
>
> I'm happy to send in the changes, but won't bother if someone has
> already done the work on it (and I just haven't seen it :)).
>
> Thanks.
>
> -Chris

hth, Jan


More information about the antlr-interest mailing list