blob: f4390d7b6dca56244ee6a635b4fa01ad42fed3a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
grammar t030specialStates;
options {
language = JavaScript;
}
@members {
this.recover = function(input, re) {
throw re;
};
}
r
: ( {this.cond}? NAME
| {!this.cond}? NAME WS+ NAME
)
( WS+ NAME )?
EOF
;
NAME: ('a'..'z') ('a'..'z' | '0'..'9')+;
NUMBER: ('0'..'9')+;
WS: ' '+;
|