Have the pretty-printer take a writer stream as argument

It now uses a string writer to also fill in for
middle.ty.ast_ty_to_str
This commit is contained in:
Marijn Haverbeke 2011-03-09 11:41:50 +01:00 committed by unknown
parent dddd7d8f44
commit aed40fbcd8
6 changed files with 61 additions and 119 deletions

View file

@ -66,7 +66,7 @@ impure fn pretty_print_input(session.session sess,
str input) {
auto p = front.parser.new_parser(sess, env, 0, input);
auto crate = front.parser.parse_crate_from_source_file(p);
pretty.pprust.print_ast(crate.node.module);
pretty.pprust.print_ast(crate.node.module, std.io.stdout_writer());
}
fn warn_wrong_compiler() {