1 2grammar t058rewriteAST39; 3options {language=JavaScript;output=AST;} 4a : atom -> {this.adaptor.create(INT,"9")} atom ; 5atom : INT ; 6ID : 'a'..'z'+ ; 7INT : '0'..'9'+; 8WS : (' '|'\n') {$channel=HIDDEN;} ;