aboutsummaryrefslogtreecommitdiff
path: root/src/comp/fe/token.rs
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/fe/token.rs
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/fe/token.rs')
-rw-r--r--src/comp/fe/token.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/comp/fe/token.rs b/src/comp/fe/token.rs
index 2ec492fa..5e8171bc 100644
--- a/src/comp/fe/token.rs
+++ b/src/comp/fe/token.rs
@@ -275,9 +275,8 @@ fn to_str(token t) -> str {
}
case (LIT_CHAR(c)) {
// FIXME: escape and encode.
- auto tmp = "'";
- tmp += c as u8;
- tmp += '\'' as u8;
+ auto tmp = "";
+ tmp += (c as u8);
ret tmp;
}
@@ -286,7 +285,7 @@ fn to_str(token t) -> str {
}
/* Name components */
- case (IDENT(s)) { auto si = "ident:"; si += s; ret si; }
+ case (IDENT(s)) { ret s; }
case (IDX(i)) { ret "_" + _int.to_str(i, 10u); }
case (UNDERSCORE()) { ret "_"; }