1

Closed

Match A but not B

description

I need to figure out, how to translate EBNF rule like this A - B into ANTLR ...
For example A is set of numbers 1 to 9 and B is a set of numbers 3 to 6 .... In EBNF it is easy, yoy write simply
A - B... which means, match all numbers from 1 to 9 with exception of numbers 3 to 6 ....How do I do it in ANTLR?
Closed Mar 1, 2009 at 4:39 AM by vlastik01

comments

vlastik01 wrote Mar 1, 2009 at 4:37 AM

there are different ways to solve it and all of them are quite simple

wrote Mar 1, 2009 at 4:39 AM

wrote Jan 21, 2013 at 6:35 PM

wrote May 8, 2013 at 4:50 PM