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