You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
332 B
14 lines
332 B
4 months ago
|
// @@ANTLR Tool Options@@: -trace
|
||
|
tree grammar t051treeRewriteASTabWalker;
|
||
|
options {
|
||
|
language=JavaScript;
|
||
|
output=AST;
|
||
|
ASTLabelType=CommonTree;
|
||
|
tokenVocab=t051treeRewriteASTab;
|
||
|
rewrite=true;
|
||
|
}
|
||
|
s : ^(ID a) { this.buf += $s.start.toStringTree() };
|
||
|
a : ^(ID INT) -> {true}? ^(ID["ick"] INT)
|
||
|
-> INT
|
||
|
;
|