|
From: | Felix Winkelmann |
Subject: | Re: [Chicken-users] Parsing lists from external scheme intepreters |
Date: | Wed, 29 Sep 2004 11:44:59 +0200 |
User-agent: | Mozilla Thunderbird 0.5 (X11/20040208) |
Michael Erdmann wrote:
Hallo *, currently i am build a small extension for chicken which allows to use chicken code as an client for the framerD database. I am able to issue request to the server. The result are scheme list (in text) and i am looking for a simple way to convert this in chicken data instanes. Typical results are (ignore the result = in front): result = #t result = ("if" @3ff031ad/7381a "then" @3ff031ad/73801 @3ff031ad/7381c) result = ("declare" @3ff031ad/7380c)
To convert strings into data, you can use string-ports, which are quite portable: (define (string->data str) (let ((i (open-input-string str))) (read i) ) ) See also: http://srfi.schemers.org/srfi-6/srfi-6.html > I have checked the documentation i found operations to start end end > a list but not to add anything. > I'm sure whether I understand: you mean to add things to a list? cheers, felix
[Prev in Thread] | Current Thread | [Next in Thread] |