1 // @@ANTLR Tool Options@@: -trace 2 tree grammar t051treeRewriteASTtWalker; 3 options { 4 language=JavaScript; 5 output=AST; 6 ASTLabelType=CommonTree; 7 tokenVocab=t051treeRewriteASTt; 8 rewrite=true; 9 } 10 a : ^(ID INT) -> ^(ID["ick"] INT) 11 | INT // leaves it alone, returning $a.start 12 ; 13