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