1// @@ANTLR Tool Options@@: -trace 2tree grammar t049treeparserhWalker; 3options { 4 language=JavaScript; 5 ASTLabelType=CommonTree; 6} 7a : ^(ID INT? b) SEMI 8 {this.capture($ID+", "+$b.text);} 9 ; 10b : ID? ; 11