[antlr-interest] warning for 'no lexer rule corresponding to token'

Haofei yuesefa at gmail.com
Tue Aug 7 06:37:43 PDT 2007


for example, a lexer rule like

COLON    :    ':'        {if (!spaceIsNext())
{$type=COLON_WITH_NO_FOLLOWING_SPACE;}};

if the token is a colon with no following space, I just change it type to
that. but when i generate the java code, there's a warning like

warning(105):  no lexer rule corresponding to token:
COLON_WITH_NO_FOLLOWING_SPACE

Is there any way to fix this warning? thanks a lot :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070807/fc30999e/attachment.html 


More information about the antlr-interest mailing list