nitcc: tests script return non-zero on failure (print is not enough)
[nit.git] / contrib / nitcc / tests / re.sablecc
1 Grammar x;
2 Lexer
3 blank = #10 | #13 | #32;
4 Parser
5 Ignored blank;
6 re =
7         'a' |
8         '(' re ')'
9 Unary
10         re '+' |
11         re '*' |
12         re '?'
13 Left
14         re re
15 Left
16         re '|' re ;