mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-10 06:27:33 +02:00
Providing friendlier error message for # at end of input.
This commit is contained in:
parent
c316c4d715
commit
580d4323aa
1 changed files with 2 additions and 0 deletions
|
@ -226,6 +226,8 @@
|
|||
(case (peek-char in)
|
||||
((#\#)
|
||||
(read-char in)
|
||||
(if (eof-object? (peek-char in))
|
||||
(error "read error: incomplete # found at end of input"))
|
||||
(case (char-downcase (peek-char in))
|
||||
((#\0 #\1 #\2 #\3 #\4 #\5 #\6 #\7 #\8 #\9)
|
||||
(let* ((str (read-label '()))
|
||||
|
|
Loading…
Add table
Reference in a new issue