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

grammar t058rewriteAST77;
options {language=JavaScript;output=AST;}
tokens {EXPR;}
decl : type ID '=' INT ';' -> ^(EXPR type ID INT) ;
type : 'int' | 'float' ;
ID : 'a'..'z'+ ;
INT : '0'..'9'+;
WS : (' '|'\n') {$channel=HIDDEN;} ;