15 lines
296 B
Plaintext
Executable File
15 lines
296 B
Plaintext
Executable File
// @@ANTLR Tool Options@@: -trace
|
|
tree grammar t051treeRewriteASTaaWalker;
|
|
options {
|
|
language=JavaScript;
|
|
output=AST;
|
|
ASTLabelType=CommonTree;
|
|
tokenVocab=t051treeRewriteASTaa;
|
|
rewrite=true;
|
|
}
|
|
tokens { X; }
|
|
s : ^(a b) ; // s.tree is a.tree
|
|
a : 'boo' ;
|
|
b : ^(ID INT) -> INT
|
|
;
|