[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Guile v. 2.0.1 does not handle escaped open parentheses correctly.
From: |
Torstein Winterseth |
Subject: |
Guile v. 2.0.1 does not handle escaped open parentheses correctly. |
Date: |
Wed, 11 May 2011 16:22:28 +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 on Fedora 15
which fails this, but anyhow.
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:
ERROR: In procedure primitive-load:
ERROR: In procedure scm_read_expression:
/home/torstein/Skrivebord/testcase.scm:2:27: unexpected ")"
--
Mvh / Kind regards
Torstein
- Guile v. 2.0.1 does not handle escaped open parentheses correctly.,
Torstein Winterseth <=