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