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