xref: /aosp_15_r20/external/antlr/runtime/JavaScript/tests/functional/t053heteroTP17.g (revision 16467b971bd3e2009fad32dd79016f2c7e421deb)
1*16467b97STreehugger Robotgrammar t053heteroTP17;
2*16467b97STreehugger Robotoptions {
3*16467b97STreehugger Robot    language=JavaScript;
4*16467b97STreehugger Robot    output=AST;
5*16467b97STreehugger Robot    tokenVocab=t053heteroT17;
6*16467b97STreehugger Robot}
7*16467b97STreehugger Robottokens { ROOT; }
8*16467b97STreehugger Robot@header {
9*16467b97STreehugger Robotfunction V17(ttype) {
10*16467b97STreehugger Robot    V17.superclass.constructor.call(this, new org.antlr.runtime.CommonToken(ttype));
11*16467b97STreehugger Robot};
12*16467b97STreehugger Robotorg.antlr.lang.extend(V17, org.antlr.runtime.tree.CommonTree, {
13*16467b97STreehugger Robot    toString: function() {
14*16467b97STreehugger Robot        return t053heteroTP17Parser.tokenNames[this.getType()] + "<V>";
15*16467b97STreehugger Robot    }
16*16467b97STreehugger Robot});
17*16467b97STreehugger Robot}
18*16467b97STreehugger Robota : ID -> ^(ROOT<V17> ID)
19*16467b97STreehugger Robot  ;
20*16467b97STreehugger Robot
21