Home | History | Annotate | Download | only in functional
      1 grammar t057autoAST40;
      2 options {language=JavaScript;output=AST;}
      3 a returns [result]: x+=b x+=b {
      4 t=$x[1]
      5 $result = "2nd x="+t.toStringTree()+',';
      6 };
      7 b : ID;
      8 ID : 'a'..'z'+ ;
      9 INT : '0'..'9'+;
     10 WS : (' '|'\n') {$channel=HIDDEN;} ;
     11