• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// @@ANTLR Tool Options@@: -trace
2tree grammar t051treeRewriteASTabWalker;
3options {
4    language=JavaScript;
5    output=AST;
6    ASTLabelType=CommonTree;
7    tokenVocab=t051treeRewriteASTab;
8    rewrite=true;
9}
10s : ^(ID a) { this.buf += $s.start.toStringTree() };
11a : ^(ID INT) -> {true}? ^(ID["ick"] INT)
12              -> INT
13  ;
14