[antlr-interest] Two (or more?) comments in a row in the grammar file fails
Cristian Peraferrer
corellian.c at gmail.com
Thu Oct 11 09:28:19 PDT 2007
Why when I put two or more multiline comments in a grammar file it fails to
generate the code?
Here my example:
tokens {
LITINT = 'int';
PLUS = '+';
SEMI = ';';
}
ID : ('a'..'z' | 'A'..'Z') ('a'..'z'| 'A'..'Z'|'0'..'9')* ;
/** comment 1 **/
/** comment 2 **/
add : (ID (PLUS! ID)+ SEMI!)+ ;
--
GPG Key-ID: 0x564903FA - JID: corellian at swissjabber.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071011/5033f123/attachment.html
More information about the antlr-interest
mailing list