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