1
2grammar t058rewriteAST34;
3options {language=JavaScript;output=AST;}
4tokens {BLOCK;}
5a : b b^ ; // 2nd b matches only an INT; can make it root
6b : ID INT -> INT ID
7  | INT
8  ;
9ID : 'a'..'z'+ ;
10INT : '0'..'9'+;
11WS : (' '|'\n') {$channel=HIDDEN;} ;