a_star: don't crash on deserialization errors and limit static types
[nit.git] / contrib / re_parser / src / re_parser.sablecc
1 Grammar re_parser;
2
3 Lexer
4
5 // A printable character (inside strings)
6 char = ' ' ...;
7
8 // Igndored stufs
9 blank = ' ';
10
11 Parser
12
13 Ignored blank;
14
15 re =
16         {char:} char    |
17         {par:} '(' re ')'
18 Unary
19         {ques:} re '?' |
20         {star:} re '*' |
21         {plus:} re '+'
22 Left
23         {conc:} re re
24 Left
25         {alter:} re '|' re;