[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sexp oriented select
From: |
Ondrej Zajicek |
Subject: |
sexp oriented select |
Date: |
Wed, 18 Jun 2003 22:53:43 +0200 |
User-agent: |
Mutt/1.5.4i |
Hello
I am thinking about something like s-expression oriented select - it accepts
list of ports (or file descriptors) and returns first arrived s-expression (or
ends because of timeout) and some identifier of port sexp is from.
Is there any clever way to implement this in guile (without reimplementing
'read')? My best idea is to use select, collect chars from ports, count
parenthesis for each port and when something sexp-like appears then read it
(from string created from collected chars) and unget rest of chars (or pass it
like some state between calls to this function).
--
Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: address@hidden, jabber: address@hidden)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
pgpCye270rP5E.pgp
Description: PGP signature
- sexp oriented select,
Ondrej Zajicek <=