xref: /aosp_15_r20/external/antlr/runtime/JavaScript/tests/functional/t057autoAST41.g (revision 16467b971bd3e2009fad32dd79016f2c7e421deb)
1grammar t057autoAST41;
2options {language=JavaScript;output=AST;}
3a returns [result] : ( x+=b^ )+ {
4$result = "x="+$x[1].toStringTree()+',';
5} ;
6b : ID;
7ID : 'a'..'z'+ ;
8INT : '0'..'9'+;
9WS : (' '|'\n') {$channel=HIDDEN;} ;
10