feat: add floats

This commit is contained in:
2026-04-22 22:21:26 +02:00
parent c2fc11bbeb
commit e66a4ee736
14 changed files with 471 additions and 66 deletions
+3
View File
@@ -343,6 +343,9 @@ impl FuncBuilder {
TypedExprKind::Integer { value } => {
Operand::Constant(ConstantValue::Integer(*value, expr.ty.clone()))
}
TypedExprKind::Float { value } => {
Operand::Constant(ConstantValue::Float(*value, expr.ty.clone()))
}
TypedExprKind::Boolean { value } => Operand::Constant(ConstantValue::Boolean(*value)),
TypedExprKind::Unary { op, expr: inner } => {
let inner_op = self.lower_expr(inner);