aboutsummaryrefslogtreecommitdiff
path: root/antlr-3.4/runtime/JavaScript/tests/functional/t051treeRewriteASTaa.g
blob: 16e5b5d3f8ceb6d80a27529d77f06b1e4c2e38df (plain)
1
2
3
4
5
6
7
8
9
grammar t051treeRewriteASTaa;
options {
    language=JavaScript;
    output=AST;
}
a : 'boo' ID INT -> ^('boo' ^(ID INT)) ;
ID : 'a'..'z'+ ;
INT : '0'..'9'+;
WS : (' '|'\n') {$channel=HIDDEN;} ;