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

Premkumar Rathanavelu rprememail at yahoo.com
Sun Jul 24 16:49:47 PDT 2005


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..
 
What should I do now?
 
Thanks.,
Prem


Martin Probst <mail at martin-probst.com> wrote:
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



		
---------------------------------
 Start your day with Yahoo! - make it your home page 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050724/e352484a/attachment-0001.html


More information about the antlr-interest mailing list