markcornwell / pilar

incremental development of scheme compiler
1 stars 0 forks source link

Print representation of unprintable characters #2

Open markcornwell opened 9 years ago

markcornwell commented 9 years ago

Printable characters have a well understood representation, #\a #! #\F. A few non-printable characters have a clear representation as well: #\newline, #\space, #\return, #\tab. But numerous other unprintable characters are a puzzle. Many of these are commented out in the tests-1.2-req.scm files. See that file for examples. Need to figure out what strategy to adopt for the printable forms, document a rationale, and implement the changes. Seems clear that the character escape should consist of all printable characters. One option is to follow the printable ascii names of the characters. I believe there is a standard 3 letter abbreviation for each.