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

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