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

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