f32FromParts and f64FromParts for repl

This commit is contained in:
Fabian Schmalzried 2024-03-16 15:10:29 +01:00
parent 473b8ef2d3
commit 11998b9cc8
No known key found for this signature in database
GPG key ID: D691D5DA4CEF42E7
12 changed files with 48 additions and 4 deletions

View file

@ -106,6 +106,8 @@ pub enum LowLevel {
NumWithDecimalPoint,
NumF32ToParts,
NumF64ToParts,
NumF32FromParts,
NumF64FromParts,
I128OfDec,
Eq,
NotEq,
@ -345,6 +347,8 @@ map_symbol_to_lowlevel! {
NumWithDecimalPoint <= NUM_WITH_DECIMAL_POINT;
NumF32ToParts <= NUM_F32_TO_PARTS;
NumF64ToParts <= NUM_F64_TO_PARTS;
NumF32FromParts <= NUM_F32_FROM_PARTS;
NumF64FromParts <= NUM_F64_FROM_PARTS;
Eq <= BOOL_STRUCTURAL_EQ;
NotEq <= BOOL_STRUCTURAL_NOT_EQ;
And <= BOOL_AND;

View file

@ -1272,6 +1272,8 @@ define_builtins! {
160 NUM_WITH_DECIMAL_POINT: "withDecimalPoint"
161 NUM_F32_TO_PARTS: "f32ToParts"
162 NUM_F64_TO_PARTS: "f64ToParts"
163 NUM_F32_FROM_PARTS: "f32FromParts"
164 NUM_F64_FROM_PARTS: "f64FromParts"
}
4 BOOL: "Bool" => {
0 BOOL_BOOL: "Bool" exposed_type=true // the Bool.Bool type alias