android13/external/antlr/runtime/JavaScript/tests/functional/t057autoAST48.g

9 lines
208 B
Plaintext
Executable File

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