[antlr-interest] Non-reserved keyword as identifier question
Gavin Lambert
antlr at mirality.co.nz
Fri Aug 31 15:44:38 PDT 2007
At 04:03 1/09/2007, troy runkel wrote:
>I could create an identifier parser rule which includes the
>Identifier token as well as every keyword in the grammar, but
>I think that would be a long list of keywords. Is there
>another way to handle this problem? Thanks.
That's how I do it. (I don't like the "manual examination of
lookahead" approach that seems to be the other commonly offered
solution.)
More information about the antlr-interest
mailing list