aboutsummaryrefslogtreecommitdiff
path: root/antlr-3.4/runtime/JavaScript/tests/functional/t058rewriteAST29.g
blob: bb8b84c8f7764aa95fbb1378c7ae2e3ec9b7ec66 (plain)
1
2
3
4
5
6
7
8
9

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