Home | History | Annotate | Download | only in functional
      1 grammar t057autoAST44;
      2 options {language=JavaScript;output=AST;}
      3 a returns [result] : ID b {
      4 /* @todo */
      5 /* $result = $b.i.toString() + '\n'; */
      6 } ;
      7 b returns [i] : INT {$i=parseInt($INT.text);} ;
      8 ID : 'a'..'z'+ ;
      9 INT : '0'..'9'+;
     10 WS : (' '|'\n') {$channel=HIDDEN;} ;
     11