Sergiy Karpenko schrieb:
>
> 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
ANTLR doesn't support this kind of syntax, though it is sometimes quite
handy. You have to do it manually.
Johannes