[antlr-interest] Bugfix for Java 1.5

pvgorp2003 pieter.vangorp at ua.ac.be
Mon Jul 26 05:44:26 PDT 2004


Hi,
http://www.antlr.org/grammar/1090713067533/java15.g contains a bug in
rule classOrInterfaceType.

You can easily fix it by putting the ^ after DOT instead of after IDENT:
fixed --->
classOrInterfaceType[boolean addImagNode]
	:   IDENT^ (typeArguments[addImagNode])?
        (options{greedy=true;}: // match as many as possible
            DOT^
            IDENT (typeArguments[addImagNode])?
        )*
    ;

Best regards,
-- Pieter Van Gorp.




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list