unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* Guile v. 2.0.1 does not handle escaped open parentheses correctly.
@ 2011-05-11 14:22 Torstein Winterseth
  2011-05-16 21:57 ` Andy Wingo
  2011-06-11 17:23 ` Ian Price
  0 siblings, 2 replies; 3+ messages in thread
From: Torstein Winterseth @ 2011-05-11 14:22 UTC (permalink / raw)
  To: bug-guile

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:
[torstein@Desktor 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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-11 17:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-11 14:22 Guile v. 2.0.1 does not handle escaped open parentheses correctly Torstein Winterseth
2011-05-16 21:57 ` Andy Wingo
2011-06-11 17:23 ` Ian Price

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).