aboutsummaryrefslogtreecommitdiff
path: root/runtime/JavaScript/tests/functional/t058rewriteAST55.g
blob: 8029f91fa760f8f0b8c50c94a34c08139d31fe4c (plain)
1
2
3
4
5
6
7
8
9
10
11

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;} ;