mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-14 08:17:35 +02:00
Handle conversion of other chars
This commit is contained in:
parent
8bc379d7c8
commit
b0ec9d9671
1 changed files with 8 additions and 0 deletions
|
@ -71,6 +71,14 @@
|
|||
((equal? (car head) #\newline)
|
||||
(next (cdr head)
|
||||
(cons #\n (cons #\\ tail))))
|
||||
((equal? (car head) #\alarm)
|
||||
(next (cdr head) (cons #\a (cons #\\ tail))))
|
||||
((equal? (car head) #\backspace)
|
||||
(next (cdr head) (cons #\b (cons #\\ tail))))
|
||||
((equal? (car head) #\return)
|
||||
(next (cdr head) (cons #\r (cons #\\ tail))))
|
||||
((equal? (car head) #\tab)
|
||||
(next (cdr head) (cons #\t (cons #\\ tail))))
|
||||
(else
|
||||
(next (cdr head) (cons (car head) tail)))))))
|
||||
(next (string->list str) '())))
|
||||
|
|
Loading…
Add table
Reference in a new issue