[antlr-interest] Bugfix for Java 1.5

Michael Studman mstudman at gmx.net
Mon Jul 26 17:13:09 PDT 2004


Hi Peter.

Thanks for picking up on that. In the course of verifying your change I
noticed another rather nasty bug in the typeArgument / typeParameter
handling which I'll hopefully solve ASAP.

Terence: is there a process for updating already-uploaded grammars or
should I just upload it again?

Michael Studman.

-----Original Message-----
From: pvgorp2003 [mailto:pieter.vangorp at ua.ac.be] 
Sent: 26 July 2004 13:44
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] Bugfix for Java 1.5

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



 



 
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