[antlr-interest] java 1.5 grammar corrections

Terence Parr parrt at cs.usfca.edu
Thu Oct 26 14:42:35 PDT 2006


On Oct 25, 2006, at 6:45 AM, Koen Vanderkimpen wrote:

> Hi,
>
> I already mailed some time ago because I had a problem with the  
> java 1.5 grammar and generic casts.
> By using antlrworks, my colleague and me fixed this, and also a  
> typo in the rule for interface declarations.
>
>
> castExpression
>     :  '(' primitiveType ')' unaryExpression
>     |  '(' type ')' unaryExpressionNotPlusMinus
>     ;
>
> In the third line of that rule, we changed " '(' expression | type ')'

Hmm...i remember looking at this.  Can someone else confirm?  For now  
I'll leave as-is.  I have updated the other change.  Thanks!

Ter



More information about the antlr-interest mailing list