Oops -- if we're going to use the pretty-printer, we need it to work.

This commit is contained in:
Lindsey Kuper 2011-04-01 17:48:47 -07:00 committed by Graydon Hoare
parent ba537fa5f5
commit 361ee5a68b

View file

@ -379,6 +379,11 @@ impure fn print_literal(ps s, @ast.lit lit) {
wrd(s.s, common.istr(val as int)); wrd(s.s, common.istr(val as int));
wrd(s.s, common.ty_mach_to_str(mach)); wrd(s.s, common.ty_mach_to_str(mach));
} }
case (ast.lit_mach_float(?mach,?val)) {
// val is already a str
wrd(s.s, val);
wrd(s.s, common.ty_mach_to_str(mach));
}
case (ast.lit_nil) {wrd(s.s, "()");} case (ast.lit_nil) {wrd(s.s, "()");}
case (ast.lit_bool(?val)) { case (ast.lit_bool(?val)) {
if (val) {wrd(s.s, "true");} else {wrd(s.s, "false");} if (val) {wrd(s.s, "true");} else {wrd(s.s, "false");}