nitcc: tests script return non-zero on failure (print is not enough)
[nit.git] / contrib / nitcc / tests / conflict-dangling.sablecc
1 Grammar dangling;
2 Parser
3
4 f = e 
5         ; //1alt1 | e '2' '3' ;
6 e = '0' |
7         '1' e | '1' e '2' ; //alt1 '1' e | '1' e x ; //alt2 '1' e y ; 
8 x = '2' ;
9 y = x | ;
10
11 /*
12 1102 -> f[ e[ '1' e[ '1' e['0'] '2' ] ] ]
13 1102 -> f[ e[ '1' e[ '1' e['0'] ] '2' ] ]
14 11022 -> f[ e[ '1' e[ '1' e['0'] '2' ] '2' ] ]
15 11023 -> f[ e[ '1' e[ '1' e['0'] ] ] '2' '3' ]
16 */