mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-11-27 18:53:42 +03:00
Directly generate non-ASCII characters for Gambit
This commit is contained in:
parent
55df14aee7
commit
4dcef32f53
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user