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

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