1
2grammar t058rewriteAST36;
3options {language=JavaScript;output=AST;}
4tokens {TYPE;}
5a : b b ;
6b : 'int'
7 ( ID -> ^(TYPE 'int' ID)
8 | ID '=' INT -> ^(TYPE 'int' ID INT)
9 )
10 ';'
11 ;
12ID : 'a'..'z'+ ;
13INT : '0'..'9'+;
14WS : (' '|'\n') {$channel=HIDDEN;} ;