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

grammar t058rewriteAST54;
options {language=JavaScript;output=AST;}
tokens {VAR;}
a : first=ID others+=ID* -> $first VAR $others+ ;
op : '+'|'-' ;
ID : 'a'..'z'+ ;
INT : '0'..'9'+;
WS : (' '|'\n') {$channel=HIDDEN;} ;