Home | History | Annotate | Download | only in functional
      1 tree grammar t049treeparserdWalker;
      2 options {
      3     language=JavaScript;
      4     ASTLabelType=CommonTree;
      5 }
      6 a : b b ;
      7 b : ID INT+    {this.capture($ID+" "+$INT+"\n");}
      8   | ^(x=ID (y=INT)+) {this.capture("^("+$x+' '+$y+")");}
      9   ;
     10