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