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