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

grammar t058rewriteAST41;
options {language=JavaScript;output=AST;}
tokens {BLOCK;}
a : atom -> ^(atom atom) ; // NOT CYCLE! (dup atom)
atom : INT ;
ID : 'a'..'z'+ ;
INT : '0'..'9'+;
WS : (' '|'\n') {$channel=HIDDEN;} ;