• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// @@ANTLR Tool Options@@: -trace
2tree grammar t051treeRewriteASTzWalker;
3options {
4    language=JavaScript;
5    output=AST;
6    ASTLabelType=CommonTree;
7    tokenVocab=t051treeRewriteASTz;
8    rewrite=true;
9}
10tokens { X; }
11s : ^('boo' a* b) ; // don't reset s.tree to b.tree due to 'boo'
12a : X ;
13b : ^(ID INT) -> INT
14  ;
15