Share

TinyScheme

Tracker: Bugs

5 SRFI-6 read support is not working. - ID: 2832150
Last Update: Comment added ( kcozens )

One of the examples on reading from input strings shown in the SRFI-6
document located at http://srfi.schemers.org/srfi-6/srfi-6.html does not
work in the current CVS version of TinyScheme. The example along with the
expected output is:

(define p
(open-input-string "(a . (b . c . ())) 34")) --> p

(input-port? p) --> #t
(read p) --> (a b c)
(read p) --> 34
(eof-object? (peek-char p)) --> #t

With TinyScheme, the read calls fail. The first read call returns
Error: syntax error: illegal dot expression
and the ts> prompt doesn't reapper.


Nobody/Anonymous ( nobody ) - 2009-08-04 17:57

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2009-08-06 14:30
Sender: kcozens

I should have looked at the example more closely. The problem is a result
of a typo in the SRFI document. The first line should have read (define p
(open-input-string "(a . (b . (c . ()))) 34")).

This report can be closed as not a bug.


Date: 2009-08-04 18:03
Sender: kcozens

The above was submitted by myself (Kevin Cozens). I was using a different
machine and forgot I hadn't logged in yet.


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.