|symbol| syntax now signals an error in #!r6rs mode.

This commit is contained in:
Abdulaziz Ghuloum 2007-11-19 01:47:46 -05:00
parent a7680d723d
commit 9ff795e02f
1 changed files with 2 additions and 0 deletions

View File

@ -882,6 +882,8 @@
[($char= #\. c)
(tokenize-dot p)]
[($char= #\| c)
(when (eq? (port-mode p) 'r6rs-mode)
(error 'tokenize "|symbol| syntax is invalid in #!r6rs mode"))
(let ([ls (reverse (tokenize-bar p '()))])
(cons 'datum (string->symbol (list->string ls))))]
[($char= #\\ c)