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

grammar t058rewriteAST56;
options {language=JavaScript;output=AST;}
tokens {BLOCK;}
a : x=b -> $x;
b : ID ;
ID : 'a'..'z'+ ;
WS : (' '|'\n') {$channel=HIDDEN;} ;