1grammar t053heteroTP17; 2options { 3 language=JavaScript; 4 output=AST; 5 tokenVocab=t053heteroT17; 6} 7tokens { ROOT; } 8@header { 9function V17(ttype) { 10 V17.superclass.constructor.call(this, new org.antlr.runtime.CommonToken(ttype)); 11}; 12org.antlr.lang.extend(V17, org.antlr.runtime.tree.CommonTree, { 13 toString: function() { 14 return t053heteroTP17Parser.tokenNames[this.getType()] + "<V>"; 15 } 16}); 17} 18a : ID -> ^(ROOT<V17> ID) 19 ; 20 21