encode all literal-character types as ascii code for compatiblity with c symbol names

This commit is contained in:
Michael Sippel 2025-02-20 05:26:37 +01:00
parent dfc9ced33c
commit 44ff30e599
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -95,11 +95,7 @@ struct LdmcPrimCMorphism {
fn encode_type_to_symbol(dict: &mut impl TypeDict, t: &laddertypes::TypeTerm)-> String {
match t {
laddertypes::TypeTerm::Char(c) => {
match *c {
'\0' => { "NULL".into() },
'\t' => { "TAB".into() },
c => { format!("{}", c) }
}
format!("{}", (*c as u64))
},
t => dict.unparse(t)
}