From: Conrad Taylor
Subject: peek-char routine for PC Scheme...???
Date:
Message-ID: <C601vB.C3n@cs.uiuc.edu>
Does snyone have a peek-char routine as discussed in
R4RS that could be used for PC-Scheme? I have discovered that
PC-Scheme 3.03 doesn't consist of this routine at the moment.
Also, has anyone had any success in using the slib library with
PC-Scheme? If so, could you explain the process on how to use
the SLIB Library with PC-Scheme (creating an init file for PC-
Scheme)?
Thanks in advance,
-Con
In article <··········@cs.uiuc.edu> ·······@cs.uiuc.edu (Conrad Taylor) writes:
Does snyone have a peek-char routine as discussed in
R4RS that could be used for PC-Scheme?
For some purposes you can use char-ready?, which takes an optional
port argument. It returns #t, if there is a character waiting that can
be read using read-char. If the port is at the end of file, it returns
an end-of-file object, and #f otherwise.
If you would uuse peek-char to provide a lookahead token, you may need
to buffer one character yourself.
--
Pertti Kellom\"aki (TeX format) # These opinions are mine,
Tampere Univ. of TeXnology # ALL MINE !
Software Systems Lab # (but go ahead and use them, if you like)