Oops -- if we're going to use the pretty-printer, we need it to work.
This commit is contained in:
parent
ba537fa5f5
commit
361ee5a68b
1 changed files with 5 additions and 0 deletions
|
@ -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");}
|
||||||
|
|
Loading…
Reference in a new issue