nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
nitcc: tests script return non-zero on failure (print is not enough)
[nit.git]
/
contrib
/
nitcc
/
tests
/
lexer-any.sablecc
1
Grammar y;
2
3
Lexer
4
5
a = 'a' Any;
6
b = 'b' (Any - 'b');
7
c = 'c' (#0..'c');
8
d = 'd' (Any-(#0..'c'));
9
e = 'e' 'e'...;
10
11
blank = #10 | #13 | #32;
12
Parser
13
Ignored blank;
14
15
p = t+;
16
t = a | b | c | d | e;