Actually it is because it thinks it is a documentation comment like Javadoc and 
you can only have one. The new parsres we are working on will give better error 
messages about such things.

 

If you used:

/* *****************

 

Then you won't get the issue - the lexer looks for /** at the comment start.

 

Jim

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of Steve McFarlin
Sent: Sunday, November 08, 2009 12:44 AM
To: [email protected]
Subject: [antlr-interest] Java Target Generation Problem

 

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

 

 

 




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to