pub fn operator_prec(op: ast::BinOp_) -> usize {
  match op {
      // 'as' sits here with 12
      BiMul | BiDiv | BiRem     => 11,
      BiAdd | BiSub             => 10,
      BiShl | BiShr             =>  9,
      BiBitAnd                  =>  8,
      BiBitXor                  =>  7,
      BiBitOr                   =>  6,
      BiLt | BiLe | BiGe | BiGt | BiEq | BiNe => 3,
      BiAnd                     =>  2,
      BiOr                      =>  1
  }
}
/// Maps a binary operator to its precedence
Maps a binary operator to its precedence
Maps a binary operator to its precedence
pub fn operator_prec(op: ast::BinOp_) -> usize {
  match op {
      // 'as' sits here with 12
      BiMul | BiDiv | BiRem     => 11,
      BiAdd | BiSub             => 10,
      BiShl | BiShr             =>  9,
      BiBitAnd                  =>  8,
      BiBitXor                  =>  7,
      BiBitOr                   =>  6,
      BiLt | BiLe | BiGe | BiGt | BiEq | BiNe => 3,
      BiAnd                     =>  2,
      BiOr                      =>  1
  }
}
pub fn operator_prec ( op : ast :: BinOp_ ) -> usize { match op { // 'as' sits here with 12 BiMul | BiDiv | BiRem => 11 , BiAdd | BiSub => 10 , BiShl | BiShr => 9 , BiBitAnd => 8 , BiBitXor => 7 , BiBitOr => 6 , BiLt | BiLe | BiGe | BiGt | BiEq | BiNe => 3 , BiAnd => 2 , BiOr => 1 } }
Maps a binary operator to its precedence
Maps a binary operator to its precedence
op
ast::BinOp_
op
ast::BinOp_