[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Guile does not handle escaped open parentheses correctly.
From: |
Torstein Winterseth |
Subject: |
Guile does not handle escaped open parentheses correctly. |
Date: |
Wed, 11 May 2011 16:20:16 +0200 |
Hello,
I have found a bug where Guile does not handle escaped open
parentheses correctly. This was found in a real program which works in
Dr. Racket in R5RS mode. You are not the only interpreter available on
Fedora 15 which fails this, but anyhow.
Guile version:
Guile v. 2.0.1 compiled from sources.
Testcase:
(define bug
'(\())
Expected results:
No errors. bug variable should now be bound to the list (().
Actual result:
address@hidden Skrivebord]$ guile -l testcase.scm --no-auto-compile
ERROR: In procedure primitive-load:
ERROR: In procedure scm_i_lreadparen:
/home/torstein/Skrivebord/testcase.scm:3:12: end of file
In the actual program the list was larger, '(\{ \[ \(), and then the error was:
address@hidden Skrivebord]$ guile -l testcase.scm --no-auto-compile
ERROR: In procedure primitive-load:
ERROR: In procedure scm_read_expression:
/home/torstein/Skrivebord/testcase.scm:2:27: unexpected ")"
--
Mvh / Kind regards
Torstein
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Guile does not handle escaped open parentheses correctly.,
Torstein Winterseth <=