encode all literal-character types as ascii code for compatiblity with c symbol names
This commit is contained in:
parent
dfc9ced33c
commit
44ff30e599
1 changed files with 1 additions and 5 deletions
|
@ -95,11 +95,7 @@ struct LdmcPrimCMorphism {
|
||||||
fn encode_type_to_symbol(dict: &mut impl TypeDict, t: &laddertypes::TypeTerm)-> String {
|
fn encode_type_to_symbol(dict: &mut impl TypeDict, t: &laddertypes::TypeTerm)-> String {
|
||||||
match t {
|
match t {
|
||||||
laddertypes::TypeTerm::Char(c) => {
|
laddertypes::TypeTerm::Char(c) => {
|
||||||
match *c {
|
format!("{}", (*c as u64))
|
||||||
'\0' => { "NULL".into() },
|
|
||||||
'\t' => { "TAB".into() },
|
|
||||||
c => { format!("{}", c) }
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
t => dict.unparse(t)
|
t => dict.unparse(t)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue