This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
error diagnostics in 1.6.97
- From: Bruce Lewis <brlewis at alum dot mit dot edu>
- To: kawa at sources dot redhat dot com
- Date: Wed, 16 Jan 2002 13:45:55 -0500
- Subject: error diagnostics in 1.6.97
It seems the load procedure give line/column/error information, while
read just gives the SyntaxException class.
#|kawa:1|# (load "/tmp/bad.scm")
/tmp/bad.scm:4:1: unexpected EOF in list
#|kawa:2|# (call-with-input-file "/tmp/bad.scm" read)
java.lang.RuntimeException: syntax error in read: gnu.text.SyntaxException
at java.lang.Throwable.<init>(Throwable.java:96)
...
What should read be doing that load is doing?
(I ask this because I want to make brl-read show line/column/error
information too.)
--
Bruce R. Lewis http://brl.sourceforge.net/