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