xref: /aosp_15_r20/external/antlr/runtime/JavaScript/tests/functional/t049treeparserdWalker.g (revision 16467b971bd3e2009fad32dd79016f2c7e421deb)
1tree grammar t049treeparserdWalker;
2options {
3    language=JavaScript;
4    ASTLabelType=CommonTree;
5}
6a : b b ;
7b : ID INT+    {this.capture($ID+" "+$INT+"\n");}
8  | ^(x=ID (y=INT)+) {this.capture("^("+$x+' '+$y+")");}
9  ;
10