[antlr-interest] Error: How to deal with Special characters?

Martin Probst mail at martin-probst.com
Sun Jul 24 10:58:55 PDT 2005


Hi,

in ANTLR lexers, the "not" rule depends on the charVocabulary of the
lexer. If you want to have the "not" rule match really any character,
you have to make sure it's included in you lexers char vocabulary.

>   | ~('*'| '\r' | '\n')

Martin




More information about the antlr-interest mailing list