aboutsummaryrefslogtreecommitdiff
path: root/runtime/JavaScript/tests/functional/t058rewriteAST50.g
blob: a9e261685fabe15627c252c202f2920f9c8d52a6 (plain)
1
2
3
4
5
6
7
8

grammar t058rewriteAST50;
options {language=JavaScript;output=AST;}
a : 'int' ID ';' -> 'int' ID 'int' ID ;
op : '+'|'-' ;
ID : 'a'..'z'+ ;
INT : '0'..'9'+;
WS : (' '|'\n') {$channel=HIDDEN;} ;