[antlr-interest] ANTLRWorks problem
Terence Parr
parrt at cs.usfca.edu
Tue Apr 10 10:16:56 PDT 2007
On Apr 10, 2007, at 6:14 AM, Lucio Biondi wrote:
> Ok, I could safely ignore a warning in the combined lexer/parser
> grammar I'm working on,
> but it prevents me from using ANTLRWorks. And, admitting I can't
> live by now without it
> (great work Terence & Jean, it's very handy :-), I just need to
> resolve the error.
>
> So, that's the matter
>
> I'm getting a "no lexer rule corresponding to token: FLOAT_CONST"
> error message, but
> don't know how to overcome this. All things seem right in the
> grammar, and it works even ;-)
It's just a warning...it's an imaginary token.
> The token FLOAT_CONST is present in all files generated by antlr,
> and I have tried as well
> different ways for setting the rule type
> setType(FLOAT_CONST)
> $type = FLOAT_CONST
> but the error message persists.
It's should be a warning. Just ignore ;)
Ter
More information about the antlr-interest
mailing list