e01.org

Lisp reader

In the programming language Lisp, the reader or read function is the parser which converts the textual form of Lisp objects to the corresponding internal object structure. In the original Lisp, S-expressions consisted only of symbols, integers, and the list constructors ( x i ... ) and (x . y) . Later Lisps, culminating in Common Lisp, added literals for floating-point, complex, and rational numbers, strings, and constructors for vectors. The reader is responsible for parsing list structure, interning symbols, converting numbers to internal form, and calling read macros.

In the programming language Lisp, the reader or read function is the parser which converts the textual form of Lisp objects to the corresponding internal object structure. In the original Lisp, S-expressions consisted only of symbols, integers, and the list constructors ( x i ... ) and (x . y) . Later Lisps, culminating in Common Lisp, added literals for floating-point, complex, and rational numbers, strings, and constructors for vectors. The reader is responsible for parsing list structure, interning symbols, converting numbers to internal form, and calling read macros. ==Read table== The reader is controlled by the readtable , which defines the meaning of each character. ==References== ==Bibliography== John McCarthy et al., LISP 1.5 Programmer's Manual, MIT Press, 1962. David A. Moon, MACLISP Reference Manual, 1974. Guy Steele, Common LISP: The Language, Second Edition, 1990.

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Lisp reader". 1483674412. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=758560757

JSON record · API collection · citation policy