1// @@ANTLR Tool Options@@: -trace
2tree grammar t051treeRewriteASTwWalker;
3options {
4    language=JavaScript;
5    output=AST;
6    ASTLabelType=CommonTree;
7    tokenVocab=t051treeRewriteASTw;
8    rewrite=true;
9}
10s : a ;
11a : b ; // a.tree must become b.tree
12b : ^(ID INT) -> INT
13  ;
14