[antlr-interest] Error: "Message ID 100 created but is not present in errorMsgIDs"
Gavin Lambert
antlr at mirality.co.nz
Fri Jul 11 15:29:19 PDT 2008
At 02:57 12/07/2008, Johannes Luber wrote:
> grammar TestGrammar2;
>
> defList: (CommentLine | Def | WS)*;
>
> Def: 'DEFINE' WS Name;
> CommentLine: '!' ~('\n'|'\r')* '\r'? '\n' { $channel =
>HIDDEN; };
> fragment Name: Letter AlphaNum*;
> fragment AlphaNum: Letter | Digit;
> fragment Digit: '0'..'9';
> fragment Letter : 'A'..'Z' | 'a'..'z';
> WS: ( ' ' | '\t' | '\r' | '\n')+ { $channel = HIDDEN; };
Note that defList will never actually see CommentLine or WS
tokens, since they're hidden. So you might as well just render it
like so:
defList: Def*;
More information about the antlr-interest
mailing list