[antlr-interest] How exclude a symbol from lexer rule?

Sergiy Karpenko bergschloss at ukr.net
Tue Oct 7 07:40:51 PDT 2008


Hi, all    
For axample we have a lexer rule:    
    
CHAR : ('a'..'z')|('0'..'9');    
    
But, I want exclude from this sequence 'k' symbol.     
Somethig like    
EXTCHAR: CHAR ~'k' ;    
    
Thanks    
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081007/4adc1802/attachment.html 


More information about the antlr-interest mailing list