adds Num.bitwiseAnd

This commit is contained in:
Celso Bonutti Filho 2020-12-20 19:55:10 -03:00
parent afd3991bc9
commit 0a24f3b4b4
9 changed files with 54 additions and 1 deletions

View file

@ -112,6 +112,7 @@ pub fn builtin_defs_map(symbol: Symbol, var_store: &mut VarStore) -> Option<Def>
NUM_ASIN => num_asin,
NUM_MAX_INT => num_max_int,
NUM_MIN_INT => num_min_int,
NUM_BITWISE_AND => num_bitwise_and
}
}
@ -950,6 +951,11 @@ fn num_asin(symbol: Symbol, var_store: &mut VarStore) -> Def {
)
}
/// Num.bitwiseAnd : Int, Int -> Int
fn num_bitwise_and(symbol: Symbol, var_store: &mut VarStore) -> Def {
num_binop(symbol, var_store, LowLevel::NumBitwiseAnd)
}
/// List.isEmpty : List * -> Bool
fn list_is_empty(symbol: Symbol, var_store: &mut VarStore) -> Def {
let list_var = var_store.fresh();