nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
nitcc: introduce nitcc
[nit.git]
/
contrib
/
nitcc
/
t
/
lexer-markers.sablecc
1
Grammar re;
2
Lexer
3
a = 'a';
4
b = 'a' 'b' 'a' 'c'; //alt1 //alt2
5
//alt1 b = 'a' 'b' 'a'* 'c';
6
//alt2 b = 'a'* 'b' 'a' 'c';
7
blank = #10 | #13 | #32;
8
Parser
9
Ignored blank;
10
t = a | b;