1tree grammar t049treeparsercWalker; 2options { 3 language=JavaScript; 4 ASTLabelType=CommonTree; 5} 6a : b b ; 7b : ID INT {this.capture($ID+" "+$INT+"\n");} 8 | ^(ID INT) {this.capture("^("+$ID+" "+$INT+")");} 9 ; 10