You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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: ' '+;
|