xref: /aosp_15_r20/external/antlr/runtime/JavaScript/tests/functional/t058rewriteAST78.g (revision 16467b971bd3e2009fad32dd79016f2c7e421deb)
1
2grammar t058rewriteAST78;
3options {language=JavaScript;output=AST;}
4tokens {EXPR;}
5decl : type ID '=' INT ';' -> ^(EXPR type ID INT) ;
6type : 'int' | 'float' ;
7ID : 'a'..'z'+ ;
8INT : '0'..'9'+;
9WS : (' '|'\n') {$channel=HIDDEN;} ;