Directly generate non-ASCII characters for Gambit

This commit is contained in:
Abdelhakim Qbaich 2020-04-24 15:57:41 -04:00
parent 55df14aee7
commit 4dcef32f53

View File

@ -39,12 +39,10 @@ schHeader = "(declare (block)
schFooter : String
schFooter = "\n"
-- XXX
showGambitChar : Char -> String -> String
showGambitChar '\\' = ("\\\\" ++)
showGambitChar c
= if c < chr 32 || c > chr 126
then (("\\x" ++ asHex (cast c) ++ ";") ++)
else strCons c
showGambitChar c = strCons c
showGambitString : List Char -> String -> String
showGambitString [] = id