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