[antlr-interest] Error: How to deal with Special characters?
Martin Probst
mail at martin-probst.com
Mon Jul 25 00:25:08 PDT 2005
Keeping this onlist ...
> Hi Martin.,
> Thanks for your reply. The "not" rule already exists in the Lexer
> charVocabulary
> but error still persists. Even the special char token was also
> included
> in the charVocabulary..
Well, if ANTLR sees a ~( ... ) rule in the lexer, it creates a rule for
all chars in charVocabulary, except the ones within the braces. So if
your charVocabulary includes your special character, it should work. But
it rather looks as if it didn't ... are you really sure about that?
Martin
More information about the antlr-interest
mailing list