1 grammar t053heteroTP; 2 options { 3 language=JavaScript; 4 output=AST; 5 tokenVocab=t053heteroT; 6 } 7 tokens { ROOT; } 8 @header { 9 function VX(ttype, tree) { 10 VX.superclass.constructor.apply(this, arguments); 11 }; 12 org.antlr.lang.extend(VX, org.antlr.runtime.tree.CommonTree, { 13 toString: function() { 14 return VX.superclass.toString.call(this) + "<V>"; 15 } 16 }); 17 } 18 a : ID<V> ';'<V>; 19 20