[antlr-interest] Latest antlr minor problem [b7]
Ilia Kantor
ilia at obnovlenie.ru
Thu Apr 26 14:57:10 PDT 2007
There is a warning, maybe there should be a correct way to avoid it ?
./antlr.sh BugType.g
warning(105): BugType.g:22:4: no lexer rule corresponding to token: IF
=======================
grammar A;
tokens {
IF;
}
WORD: 'a' { $type=IF; } ;
document : IF;
========================
I used to change tokens { .. } section into this to remove warning:
IF: {false}? .;
But feels dirty.
V/R
Ilia Kantor
More information about the antlr-interest
mailing list