aboutsummaryrefslogtreecommitdiff
path: root/src/comp/util
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-08-27 17:29:56 -0700
committerPatrick Walton <[email protected]>2010-08-27 17:29:56 -0700
commit6ec8c210168120abc6cf95cf5bda5e0df824447a (patch)
tree45475c7880f6398eae994b9ec74cf1d6d4d721b0 /src/comp/util
parentMore work on lexer.rs: start using keyword hashtable, handle more lexemes. (diff)
downloadrust-6ec8c210168120abc6cf95cf5bda5e0df824447a.tar.xz
rust-6ec8c210168120abc6cf95cf5bda5e0df824447a.zip
Revert "More work on lexer.rs: start using keyword hashtable, handle more lexemes." due to tinderbox bustage
This reverts commit 9f0eaa65817303b8768c80454734144c176fda43.
Diffstat (limited to 'src/comp/util')
-rw-r--r--src/comp/util/common.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs
index 51d843b4..3089c2c1 100644
--- a/src/comp/util/common.rs
+++ b/src/comp/util/common.rs
@@ -1,22 +1,18 @@
type ty_mach = tag( ty_i8(), ty_i16(), ty_i32(), ty_i64(),
ty_u8(), ty_u16(), ty_u32(), ty_u64(),
- ty_f32(), ty_f64() );
+ ty_f32(), ty_f16() );
fn ty_mach_to_str(ty_mach tm) -> str {
alt (tm) {
case (ty_u8()) { ret "u8"; }
- case (ty_u16()) { ret "u16"; }
- case (ty_u32()) { ret "u32"; }
- case (ty_u64()) { ret "u64"; }
-
case (ty_i8()) { ret "i8"; }
+ case (ty_u16()) { ret "u16"; }
case (ty_i16()) { ret "i16"; }
+ case (ty_u32()) { ret "u32"; }
case (ty_i32()) { ret "i32"; }
+ case (ty_u64()) { ret "u64"; }
case (ty_i64()) { ret "i64"; }
-
- case (ty_f32()) { ret "f32"; }
- case (ty_f64()) { ret "f64"; }
}
}