Next: , Previous: , Up: iklib reader   [Index]


6.13.3 Custom named characters

The following syntaxes are available only when the input port mode is set to vicare.

Reader Syntax: #!(char-names (?name . ?char) ...)

Add new custom named characters to the internal table for the current reading operation. Each ?name must be a Scheme identifier starting with a ?constituent character as defined by R6RS; each ?char must be a Scheme character.

#!(char-names
    (lambda . #\x0EBB))
Reader Syntax: #\{?name}

Reader syntax for standalone custom named characters. ?name must be an identifier previously defined with the char-names comment list defined above.

#\{lambda}            ⇒ #\xEBB
Reader Syntax: \{?name}

Reader syntax for custom named characters embedded in strings. ?name must be an identifier previously defined with the char-names comment list defined above.

"\{lambda}"           ⇒ "\xEBB;"