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