Low-level to extract discriminant from a tag union

This commit is contained in:
Ayaz Hafiz 2022-10-04 16:17:05 -05:00
parent 7421485973
commit fd54cdfdd1
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
6 changed files with 41 additions and 4 deletions

View file

@ -111,6 +111,7 @@ pub enum LowLevel {
BoxExpr,
UnboxExpr,
Unreachable,
TagDiscriminant,
}
macro_rules! higher_order {
@ -211,12 +212,12 @@ macro_rules! map_symbol_to_lowlevel {
LowLevel::PtrCast => unimplemented!(),
LowLevel::RefCountInc => unimplemented!(),
LowLevel::RefCountDec => unimplemented!(),
LowLevel::TagDiscriminant => unimplemented!(),
// these are not implemented, not sure why
LowLevel::StrFromInt => unimplemented!(),
LowLevel::StrFromFloat => unimplemented!(),
LowLevel::NumIsFinite => unimplemented!(),
}
}
};