aboutsummaryrefslogtreecommitdiff
path: root/runtime/JavaScript/tests/functional/t058rewriteAST78.g
blob: 6b60798023fd36fd167107bb69a2b6b98b1fc4ac (plain)
1
2
3
4
5
6
7
8
9

grammar t058rewriteAST78;
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;} ;