aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorTim Chevalier <[email protected]>2011-03-21 17:12:05 -0700
committerGraydon Hoare <[email protected]>2011-03-21 18:10:34 -0700
commitcaa22c93415bb106bced82bbabc3d9ffbef7e69c (patch)
tree2a77dc7cfb33c82dcdc83a69a423ebc4340e576e /src/comp/front/ast.rs
parentSupport CFG_LLVM_ROOT since CMake-built LLVM has no llvm-config (diff)
downloadrust-caa22c93415bb106bced82bbabc3d9ffbef7e69c.tar.xz
rust-caa22c93415bb106bced82bbabc3d9ffbef7e69c.zip
Started adding support for floating-point type, floating-point literals, and logging of floats. Other operations on float probably don't work yet.
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs2
1 files changed, 2 insertions, 0 deletions
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;