xref: /aosp_15_r20/external/antlr/runtime/JavaScript/tests/functional/t057autoAST42.g (revision 16467b971bd3e2009fad32dd79016f2c7e421deb)
1*16467b97STreehugger Robotgrammar t057autoAST42;
2*16467b97STreehugger Robotoptions {language=JavaScript;output=AST;}
3*16467b97STreehugger Robota returns [result] : x+=b! x+=b {
4*16467b97STreehugger Robot$result = "1st x="+$x[0].toStringTree()+',';
5*16467b97STreehugger Robot} ;
6*16467b97STreehugger Robotb : ID;
7*16467b97STreehugger RobotID : 'a'..'z'+ ;
8*16467b97STreehugger RobotINT : '0'..'9'+;
9*16467b97STreehugger RobotWS : (' '|'\n') {$channel=HIDDEN;} ;
10