read(s = current_reader())
Read and return the next datum from the input stream s
. The input stream must contain objects compiled to Slogan's internal
representation. At the end of the stream, return the eof object
.
(To parse and read tokens from Slogan source code, use the stream_tokenizer and related functions.)
One common use for read
is to obtain the low-level socket stream from an incomming
network connection.