nitcc: introduce nitcc
[nit.git] / contrib / nitcc / t / lexer-implicit-longest-and-priority.sablecc
1 Grammar re;
2 Lexer
3 a='a';
4 anb='a' Lookahead Not 'b';
5 ab='ab'; //alt1 ab='DUMMY';
6 b='b';
7 blank=#10|#13|#32;
8 Parser
9 Ignored blank;
10 t = a | anb | ab | b;