Skip to content

Prettycleanup #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
3 commits merged into from
Mar 8, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 0 additions & 87 deletions src/comp/front/pretty.rs

This file was deleted.

12 changes: 11 additions & 1 deletion src/comp/pretty/pprust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ impure fn print_expr(ps s, @ast.expr expr) {
wrd1(s, "else");
print_block(s, blk);
}
case (_) { /* fall through */ }
}
}
case (ast.expr_while(?test,?block,_)) {
Expand Down Expand Up @@ -511,8 +512,17 @@ impure fn print_expr(ps s, @ast.expr expr) {
wrd1(s, "check");
print_expr(s, expr);
}
case (ast.expr_ext(?path, ?args, ?body, _, _)) {
wrd(s, "#");
print_path(s, path);
if (_vec.len[@ast.expr](args) > 0u) {
popen(s);
commasep[@ast.expr](s, args, pe);
pclose(s);
}
// TODO: extension 'body'
}
case (_) {wrd(s, "X");}
// TODO expr_ext(path, vec[@expr], option.t[@expr], @expr, ann);
}
end(s);
}
Expand Down
1 change: 0 additions & 1 deletion src/comp/rustc.rc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ mod front {
mod extfmt;
mod lexer;
mod parser;
mod pretty;
mod token;
mod eval;
}
Expand Down