antlr/tool/playground/T.g

12 lines
158 B
Plaintext
Raw Normal View History

parser grammar T;
options {output=AST;}
a : A^ ;
/*
r[int a] returns [int b]
scope {int qq;}
: x=ID y=r[34] z+=b {$b = 99;}
;
b : r[34] {$r::qq = 3;} ;
*/