blob: 0c1a7183d7af857ff2b68a111aee340ce38e6244 (
plain)
1
2
3
4
5
6
7
8
9
|
tree grammar t049treeparsercWalker;
options {
language=JavaScript;
ASTLabelType=CommonTree;
}
a : b b ;
b : ID INT {this.capture($ID+" "+$INT+"\n");}
| ^(ID INT) {this.capture("^("+$ID+" "+$INT+")");}
;
|