get rid of prec.rs

prec.rs no longer had much to do with precedence; the token->binop
function fits better in token.rs, and the one-liner defining the
precedence of 'as' can go next to the other precedence stuff in
ast_util.rs
This commit is contained in:
John Clements
2013-03-29 10:04:48 -07:00
parent 9f8d30a128
commit 1b4ced8bcb
5 changed files with 34 additions and 58 deletions

View File

@@ -355,6 +355,10 @@ pub fn operator_prec(op: ast::binop) -> uint {
}
}
/// Precedence of the `as` operator, which is a binary operator
/// not appearing in the prior table.
pub static as_prec: uint = 11u;
pub fn dtor_ty() -> @ast::Ty {
@ast::Ty {id: 0, node: ty_nil, span: dummy_sp()}
}