mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Get low-level ops compiling
This commit is contained in:
parent
b75f061f4f
commit
dec5c3a062
19 changed files with 447 additions and 296 deletions
|
@ -273,24 +273,6 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
|
||||
// Int module
|
||||
|
||||
// isLt or (<) : Num a, Num a -> Bool
|
||||
add_type(
|
||||
Symbol::INT_LT,
|
||||
SolvedType::Func(vec![int_type(), int_type()], Box::new(bool_type())),
|
||||
);
|
||||
|
||||
// equals : Int, Int -> Bool
|
||||
add_type(
|
||||
Symbol::INT_EQ_I64,
|
||||
SolvedType::Func(vec![int_type(), int_type()], Box::new(bool_type())),
|
||||
);
|
||||
|
||||
// notEquals : Int, Int -> Bool
|
||||
add_type(
|
||||
Symbol::INT_NEQ_I64,
|
||||
SolvedType::Func(vec![int_type(), int_type()], Box::new(bool_type())),
|
||||
);
|
||||
|
||||
// abs : Int -> Int
|
||||
add_type(
|
||||
Symbol::INT_ABS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue