nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
gamnit: shorten template_flat to template and update namespace
[nit.git]
/
contrib
/
nitcc
/
tests
/
lexer-prefixes.sablecc
1
Grammar x;
2
3
Lexer
4
m = 'abcd' | 'x'* 'y'+ 'z'?;
5
pm = Prefixes(m) Except '';
6
err = ('a'..'z') Except pm;
7
8
blank = #10 | #13 | #32;
9
Parser
10
Ignored blank;
11
12
s = p+;
13
p = pm | err;