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