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