t053heteroT12.g revision 324c4644fee44b9898524c09511bd33c3f12e2df
1grammar t053heteroT12;
2options {
3    language=JavaScript;
4    output=AST;
5}
6@header {
7function V() {
8    V.superclass.constructor.apply(this, arguments);
9};
10
11org.antlr.lang.extend(V, org.antlr.runtime.tree.CommonTree, {
12    toString: function() {
13        return this.getText() + "<V>";
14    }
15});
16}
17a : 'begin' INT -> ^('begin'<V> INT) ;
18ID : 'a'..'z'+ ;
19INT : '0'..'9'+ ;
20WS : (' '|'\n') {$channel=HIDDEN;} ;
21
22