nitcc: avoid conflict in ignored for test/empty
[nit.git] / contrib / nitcc / tests / lexer_and.sablecc
1 Grammar and;
2
3 Lexer
4 e1 = ('a'|'b')+;
5 e2 = ('a'|'c')+;
6
7 t1 = e1 Except e2; // any sequence of `a` and `b` with at least a `b`
8 t2 = e2 Except e1; // any sequence of `a` and `c` with at least a `c`
9 t3 = e1 And e2; // 'a'+
10
11 Parser
12
13 p = q+;
14 q = t1|t2|t3;