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

8 lines
185 B
Plaintext
Executable File

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