blob: 8029f91fa760f8f0b8c50c94a34c08139d31fe4c [file] [log] [blame]
grammar t058rewriteAST55;
options {language=JavaScript;output=AST;}
tokens {BLOCK;}
a : A A b=B B b=B c+=C C c+=C D {s=$D.text} -> A+ B+ C+ D ;
type : 'int' | 'float' ;
A : 'a' ;
B : 'b' ;
C : 'c' ;
D : 'd' ;
WS : (' '|'\n') {$channel=HIDDEN;} ;