Home | History | Annotate | Download | only in functional
      1 
      2 grammar t058rewriteAST40;
      3 options {language=JavaScript;output=AST;}
      4 tokens {BLOCK;}
      5 a : (atom -> atom) (op='+' r=atom -> ^($op $a $r) )* ;
      6 atom : INT ;
      7 ID : 'a'..'z'+ ;
      8 INT : '0'..'9'+;
      9 WS : (' '|'\n') {$channel=HIDDEN;} ;