1 // @@ANTLR Tool Options@@: -trace 2 tree grammar t049treeparsereWalker; 3 options { 4 language=JavaScript; 5 ASTLabelType=CommonTree; 6 } 7 a : ID INT+ PERIOD {this.capture("alt 1");} 8 | ID INT+ SEMI {this.capture("alt 2");} 9 ; 10