read


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.

Also see:

read_line
read_all
read_all_chars
read_n_chars
read_char
peek_chars
read_all_bytes
read_n_bytes
read_byte


Core Module Index | Contents