1grammar TreeRewrite;
2
3options {
4	output=AST;
5	language=ObjC;
6}
7
8rule:	INT subrule -> ^(subrule INT)
9	;
10
11subrule
12    :   INT
13    ;
14
15INT	:	('0'..'9')+
16	;
17
18WS  :   ' ' {$channel=HIDDEN;}
19    ;
20