[antlr-interest] Match A with exception of B .....how do I do that?

Michael Bedward michael.bedward at gmail.com
Sun Feb 22 18:26:41 PST 2009


2009/2/23 Vlastimil Adamovsky <vlas01 at yahoo.com>:
>
> I want to parse digits, that are from 0 to 9  except those that are from 4
> to 7.
> In reality, I want to parse only digits  0,1,2,3,8,9 ....
>

A: '0'..'3' | '8' | '9' ;

Is this what you want ?

Michael


More information about the antlr-interest mailing list