Files
2023-10-13 14:01:41 +00:00

23 lines
322 B
Plaintext
Executable File

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: ' '+;