lispdoc - results for read

(read &optional (stream *standard-input*) (eof-error-p t) (eof-value nil)
 (recursive-p nil))
Function: Read the next Lisp value from STREAM, and return it.
Example:
(defun retest (str)
  (with-input-from-string (is str) (read is)))
Mentioned in:
CLtL2 - 1.2.6 The Lisp Reader
CLtL2 - 10.2. The Print Name
CLtL2 - 10.3. Creating Symbols
CLtL2 - 12.9. Random Numbers
CLtL2 - 2. Data Types
CLtL2 - 2.14. Unreadable Data Objects
CLtL2 - 2.3. Symbols
CLtL2 - 2.5.1. Vectors
CLtL2 - 2.5.2. Strings
CLtL2 - 2.5.3. Bit-Vectors
CLtL2 - 20.2. The Top-Level Loop
CLtL2 - 21.1. Standard Streams
CLtL2 - 22.1. Printed Representation of Lisp Objects
CLtL2 - 22.1.1. What the Read Function Accepts
CLtL2 - 22.1.2. Parsing of Numbers and Symbols
CLtL2 - 22.1.3. Macro Characters
CLtL2 - 22.1.4. Standard Dispatching Macro Character Syntax
CLtL2 - 22.1.5. The Readtable
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.2.1. Input from Character Streams
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - 25.1.4. Similarity of Constants
CLtL2 - 29.3.18. Printing Conditions
CLtL2 - 29.3.6. Anonymous Restarts
CLtL2 - 5.3.2. Declaring Global Variables and Named Constants
CLtL2 - 5.3.3. Control of Time of Evaluation
CLtL2 - 7.1. Reference
CLtL2 - A.2.1. Scanners
HyperSpec - Function READ, READ-PRESERVING-WHITESPACE
On Lisp - Adding Prolog Features
On Lisp - Functions as Representation
On Lisp - Macro Characters
On Lisp - Referential Transparency
PCL - basic formatting
PCL - breaking open the black box
PCL - delivering applications
PCL - file output
PCL - formatting lisp code
PCL - other kinds of io
PCL - reading file data
PCL - saving and loading the database
PCL - vectors
Successful Lisp - chapter05
Successful Lisp - chapter19
Successful Lisp - chapter24
Successful Lisp - characters
Successful Lisp - lesson 11
Successful Lisp - tail recursion
(read-char &optional (stream *standard-input*) (eof-error-p t) eof-value
 recursive-p)
Undocumented
Example:
(defun continue-p ()
  "Ask user if we should continue looking for solutions."
  (case (read-char)
    (#\; t)
    (#\. nil)
    (#\Newline (continue-p))
    (otherwise
     (format t
             " Type ; to see more or . to stop")
     (continue-p))))
Mentioned in:
CLtL2 - 21.1. Standard Streams
CLtL2 - 21.2. Creating New Streams
CLtL2 - 21.3. Operations on Streams
CLtL2 - 22.1.5. The Readtable
CLtL2 - 22.2.1. Input from Character Streams
CLtL2 - 23.2. Opening and Closing Files
CLtL2 - 23.3. Renaming, Deleting, and Other File Operations
CLtL2 - 29.1. Introduction
CLtL2 - A.2.1. Scanners
HyperSpec - Function READ-CHAR
PCL - bulk reads
PCL - other kinds of io
PCL - reading file data
Successful Lisp - chapter19
Successful Lisp - characters
(read-byte stream &optional (eof-error-p t) eof-value)
Undocumented
Example:
(defun read-type-code (stream) (read-byte stream))
Mentioned in:
CLtL2 - 22.2.2. Input from Binary Streams
CLtL2 - 23.2. Opening and Closing Files
CLtL2 - 23.3. Renaming, Deleting, and Other File Operations
HyperSpec - Function READ-BYTE
PCL - binary format basics
PCL - bulk reads
PCL - implementing shoutcast
PCL - other kinds of io
PCL - reading binary data
Successful Lisp - chapter19
(read-line &optional (stream *standard-input*) (eof-error-p t) eof-value
 recursive-p)
Undocumented
Example:
(defun prompt-read (prompt)
  (format *query-io* "~a: " prompt)
  (force-output *query-io*)
  (read-line *query-io*))
Mentioned in:
CLtL2 - 22.2.1. Input from Character Streams
CLtL2 - 22.3.1. Output to Character Streams
CLtL2 - A.2.1. Scanners
HyperSpec - Function READ-LINE
On Lisp - Operations on Lists
PCL - improving the user interaction
PCL - other kinds of io
PCL - reading file data
Successful Lisp - chapter19
read-time
 
 Mentioned in:
HyperSpec - 1.5.2.1.1 Use of Read-Time Conditionals
*read-base
 
 Mentioned in:
HyperSpec - Variable *READ-BASE
*read-eval
 
 Mentioned in:
HyperSpec - Variable *READ-EVAL
*read-base*
Variable: the radix that Lisp reads numbers in
 Mentioned in:
CLtL2 - 22.1.2. Parsing of Numbers and Symbols
CLtL2 - 22.1.6. What the Print Function Produces
PCL - string comparisons
Successful Lisp - tail recursion
*read-eval*
Variable: If false, then the #. read macro is disabled.
Example:
(defun safe-read-from-string (string)
  (let ((*read-eval* nil))
    (ignore-errors (read-from-string string))))
Mentioned in:
CLtL2 - 22.1.2. Parsing of Numbers and Symbols
CLtL2 - 22.1.4. Standard Dispatching Macro Character Syntax
CLtL2 - 22.1.6. What the Print Function Produces
PCL - query parameter types
PCL - running the app
(read-sequence seq stream &key (start 0) end)
Function: Destructively modify SEQ by reading elements from STREAM. That part of SEQ bounded by START and END is destructively modified by copying successive elements into it from STREAM. If the end of file for STREAM is reached before copying all elements of the subsequence, then the extra elements near the end of sequence are not updated, and the index of the next element is returned.
 Mentioned in:
HyperSpec - Function READ-SEQUENCE
PCL - a couple of utility functions
PCL - bulk reads
PCL - file output
PCL - implementing shoutcast
*read-suppress
 
 Mentioned in:
HyperSpec - Variable *READ-SUPPRESS
*read-suppress*
Variable: Suppress most interpreting in the reader when T.
 Mentioned in:
CLtL2 - 22.1.2. Parsing of Numbers and Symbols
CLtL2 - 22.1.4. Standard Dispatching Macro Character Syntax
CLtL2 - 22.2.1. Input from Character Streams
(chunga:read-char* stream &optional eof-error-p eof-value)
Function: The streams we're dealing with are all binary with element type (UNSIGNED-BYTE 8) and we're only interested in ISO-8859-1, so we use this to `simulate' READ-CHAR.
  
(chunga:read-token stream)
Function: Read characters from STREAM while they are token constituents (according to RFC 2616). It is assumed that there's a token character at the current position. The token read is returned as a string. Doesn't signal an error (but simply stops reading) if END-OF-FILE is encountered after the first character.
  
(chunga:read-line* stream &optional log-stream)
Function: Reads and assembles characters from the binary stream STREAM until a carriage return is read. Makes sure that the following character is a linefeed. If *ACCEPT-BOGUS-EOLS* is not NIL, then the function will also accept a lone carriage return or linefeed as an acceptable line break. Returns the string of characters read excluding the line break. Returns NIL if input ends before one character was read. Additionally logs this string to LOG-STREAM if it is not NIL.
  
(trivial-gray-streams:stream-read-char stream)
Function: Read one character from the stream. Return either a character object, or the symbol :EOF if the stream is at end-of-file. Every subclass of FUNDAMENTAL-CHARACTER-INPUT-STREAM must define a method for this function.
  
(trivial-gray-streams:stream-read-line stream)
Function: This is used by READ-LINE. A string is returned as the first value. The second value is true if the string was terminated by end-of-file instead of the end of a line. The default method uses repeated calls to STREAM-READ-CHAR.
  
(trivial-gray-streams:stream-read-byte stream)
Function: Used by READ-BYTE; returns either an integer, or the symbol :EOF if the stream is at end-of-file.
  
(read-from-string string &optional (eof-error-p t) eof-value &key (start 0) end
 preserve-whitespace)
Function: The characters of string are successively given to the lisp reader and the lisp object built by the reader is returned. Macro chars will take effect.
Example:
(defun base64->obj (string)
  (ignore-errors
   (with-safe-io-syntax
    (read-from-string (base64-decode string)))))
Mentioned in:
CLtL2 - 22.2.1. Input from Character Streams
CLtL2 - Appendix C.
HyperSpec - Function READ-FROM-STRING
On Lisp - Operations on Lists
PCL - anonymous functions
PCL - query parameter types
Successful Lisp - chapter21
(read-delimited-list endchar &optional (input-stream *standard-input*)
 recursive-p)
Function: Read Lisp values from INPUT-STREAM until the next character after a value's representation is ENDCHAR, and return the objects as a list.
 Mentioned in:
CLtL2 - 22.1.5. The Readtable
CLtL2 - 22.2.1. Input from Character Streams
HyperSpec - Function READ-DELIMITED-LIST
Successful Lisp - lesson 12
(asdf:read-file-forms file)
Undocumented
  
(read-char-no-hang &optional (stream *standard-input*) (eof-error-p t)
 eof-value recursive-p)
Undocumented
 Mentioned in:
CLtL2 - 22.2.1. Input from Character Streams
HyperSpec - Function READ-CHAR-NO-HANG
Successful Lisp - chapter19
(ql-allegro:read-vector &rest args)
Undocumented
  
(ql-network:read-octets buffer connection)
Undocumented
  
(chunga:read-http-headers stream &optional log-stream)
Function: Reads HTTP header lines from STREAM (except for the initial status line which is supposed to be read already) and returns a corresponding alist of names and values where the names are keywords and the values are strings. Multiple lines with the same name are combined into one value, the individual values separated by commas. Header lines which are spread across multiple lines are recognized and treated correctly. Additonally logs the header lines to LOG-STREAM if it is not NIL.
  
(read-preserving-whitespace &optional (stream *standard-input*) (eof-error-p t)
 (eof-value nil) (recursive-p nil))
Function: Read from STREAM and return the value read, preserving any whitespace that followed the object.
 Mentioned in:
CLtL2 - 22.1.1. What the Read Function Accepts
CLtL2 - 22.2.1. Input from Character Streams
HyperSpec - Function READ, READ-PRESERVING-WHITESPACE
(hunchentoot:acceptor-read-timeout object)
Undocumented
  
*read-default-float-format
 
 Mentioned in:
HyperSpec - Variable *READ-DEFAULT-FLOAT-FORMAT
(chunga:read-name-value-pair stream &key (value-required-p t) cookie-syntax)
Function: Reads a typical (in RFC 2616) name/value or attribute/value combination from STREAM - a token followed by a #\= character and another token or a quoted string. Returns a cons of name and value, both as strings. If VALUE-REQUIRED-P is NIL, the #\= sign and the value are optional. If COOKIE-SYNTAX is true, uses READ-COOKIE-VALUE internally.
  
(ql-clisp:read-byte-sequence &rest args)
Undocumented
  
*read-default-float-format*
Undocumented
 Mentioned in:
CLtL2 - 2.1.3. Floating-Point Numbers
CLtL2 - 22.1.6. What the Print Function Produces
CLtL2 - 22.2.1. Input from Character Streams
(chunga:read-name-value-pairs stream &key (value-required-p t) cookie-syntax)
Function: Uses READ-NAME-VALUE-PAIR to read and return an alist of name/value pairs from STREAM. It is assumed that the pairs are separated by semicolons and that the first char read (except for whitespace) will be a semicolon. The parameters are used as in READ-NAME-VALUE-PAIR. Stops reading in case of END-OF-FILE (instead of signaling an error).
  
(trivial-gray-streams:stream-read-char-no-hang stream)
Function: This is used to implement READ-CHAR-NO-HANG. It returns either a character, or NIL if no input is currently available, or :EOF if end-of-file is reached. The default method provided by FUNDAMENTAL-CHARACTER-INPUT-STREAM simply calls STREAM-READ-CHAR; this is sufficient for file streams, but interactive streams should define their own method.
  
(alexandria.0.dev:read-file-into-string pathname &key (buffer-size 4096)
 external-format)
Function: Return the contents of the file denoted by PATHNAME as a fresh string. The EXTERNAL-FORMAT parameter will be passed directly to WITH-OPEN-FILE unless it's NIL, which means the system default.
  
(trivial-gray-streams:stream-read-sequence stream sequence start end
 &allow-other-keys)
Undocumented
  
(alexandria.0.dev:read-file-into-byte-vector pathname)
Function: Read PATHNAME into a freshly allocated (unsigned-byte 8) vector.