aboutsummaryrefslogtreecommitdiff
path: root/runtime/JavaScript/tests/functional/t058rewriteAST31.g
blob: 113cca713dff4d3fdd89ee989fe833b7c91f4817 (plain)
1
2
3
4
5
6
7
8
9

grammar t058rewriteAST31;
options {language=JavaScript;output=AST;}
tokens {VAR;}
a : ID (',' ID)*-> ^(VAR["var"] ID)+ ;
type : 'int' | 'float' ;
ID : 'a'..'z'+ ;
INT : '0'..'9'+;
WS : (' '|'\n') {$channel=HIDDEN;} ;