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