floats iter 1.1: Literal::Float variant + canonical hex serde + drift-test anchors

This commit is contained in:
2026-05-10 14:36:08 +02:00
parent cdc9d64169
commit ec2811194b
12 changed files with 83 additions and 2 deletions
+2
View File
@@ -565,6 +565,7 @@ fn write_lit(out: &mut String, lit: &Literal) {
Literal::Bool { value } => out.push_str(if *value { "true" } else { "false" }),
Literal::Str { value } => write_string_lit(out, value),
Literal::Unit => out.push_str("(lit-unit)"),
Literal::Float { .. } => unimplemented!("Floats milestone iter 2: surface print"),
}
}
@@ -586,6 +587,7 @@ fn write_pattern(out: &mut String, p: &Pattern) {
// came through the typechecker.
out.push_str("(lit-unit)");
}
Literal::Float { .. } => unimplemented!("Floats milestone iter 2: surface print"),
}
out.push(')');
}