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