Home | History | Annotate | Download | only in functional
      1 
      2 grammar t058rewriteAST69;
      3 options {language=JavaScript;output=AST;}
      4 tokens { FLOAT; }
      5 r
      6     : INT -> {new org.antlr.runtime.tree.CommonTree(new org.antlr.runtime.CommonToken(FLOAT, $INT.text+".0"))} 
      7     ; 
      8 INT : '0'..'9'+; 
      9 WS: (' ' | '\n' | '\t')+ {$channel = HIDDEN;};