[antlr-interest] Java Target Generation Problem
Terence Parr
parrt at cs.usfca.edu
Sun Nov 8 09:05:37 PST 2009
/** */ is a javadoc comment and only allowed on rules and grammar
headers.
T
On Nov 8, 2009, at 12:44 AM, Steve McFarlin wrote:
> Hello,
>
> ANTLR Version 3.2
> Error - Cannot generate the grammar because:
> error(100) : ... : syntax error: antlr: ... : unexpected token: /
> ************* comment 2 *********/
>
> This is a very minor issue you could assign a priority of -1 to.
> Placing block comments in a grammar file with nothing between them
> will cause a generation error. e.g.
>
>
> prog : test;
>
> /******
> comment 1
> ******/
>
> /*********
> comment 2
> *********/
>
> test : 'a' ;
>
>
>
> Steve McFarlin
>
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091108/5d9705eb/attachment.html
More information about the antlr-interest
mailing list