floats iter 1.1: Literal::Float variant + canonical hex serde + drift-test anchors
This commit is contained in:
@@ -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(')');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user