xref: /aosp_15_r20/external/antlr/runtime/JavaScript/tests/functional/t058rewriteAST55.g (revision 16467b971bd3e2009fad32dd79016f2c7e421deb)
1
2grammar t058rewriteAST55;
3options {language=JavaScript;output=AST;}
4tokens {BLOCK;}
5a : A A b=B B b=B c+=C C c+=C D {s=$D.text} -> A+ B+ C+ D ;
6type : 'int' | 'float' ;
7A : 'a' ;
8B : 'b' ;
9C : 'c' ;
10D : 'd' ;
11WS : (' '|'\n') {$channel=HIDDEN;} ;