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/front/ast.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/comp/front/ast.rs') diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs index a007e76b..cdeea241 100644 --- a/src/comp/front/ast.rs +++ b/src/comp/front/ast.rs @@ -255,6 +255,7 @@ tag lit_ { lit_int(int); lit_uint(uint); lit_mach_int(ty_mach, int); + lit_float(str); lit_nil; lit_bool(bool); } @@ -274,6 +275,7 @@ tag ty_ { ty_bool; ty_int; ty_uint; + ty_float; ty_machine(util.common.ty_mach); ty_char; ty_str; -- cgit v1.2.3