android13/external/antlr/runtime/ObjC/Framework/examples/combined/Combined.g

27 lines
311 B
Plaintext

grammar Combined;
options {
language=ObjC;
}
stat: identifier+ ;
identifier
: ID
;
ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')*
;
INT : ('0'..'9')+
;
WS : ( ' '
| '\t'
| '\r'
| '\n'
)+
{ $channel=99; }
;