From caa22c93415bb106bced82bbabc3d9ffbef7e69c Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Mon, 21 Mar 2011 17:12:05 -0700 Subject: Started adding support for floating-point type, floating-point literals, and logging of floats. Other operations on float probably don't work yet. --- src/comp/pretty/pprust.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/comp/pretty/pprust.rs') diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs index 7863f3e7..0e30ced1 100644 --- a/src/comp/pretty/pprust.rs +++ b/src/comp/pretty/pprust.rs @@ -283,6 +283,9 @@ impure fn print_literal(ps s, @ast.lit lit) { case (ast.lit_uint(?val)) { // TODO clipping? uistr? wrd(s, util.common.istr(val as int) + "u"); } + case (ast.lit_float(?fstr)) { + wrd(s, fstr); + } case (ast.lit_mach_int(?mach,?val)) { wrd(s, util.common.istr(val as int)); wrd(s, util.common.ty_mach_to_str(mach)); -- cgit v1.2.3