2 ms·
Read macros are processed at read time, the result is a change to the way the `read` function operates. The output is a lisp object. On Lisp Ch 17, page 224: h
by Jtsummers 3y ago
Read macros are processed at read time, the result is a change to the way the `read` function operates. The output is a lisp object.
On Lisp Ch 17, page 224: https://sep.turbifycdn.com/ty/cdn/paulgraham/onlisp.pdf https://sep.turbifycdn.com/ty/cdn/paulgraham/onlisp.pdf
CLTL2 Section 22.1.1: https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node188.html#SECTION002611000000000000000 https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node188.html#... - Goes into a lot of detail on how the reader works.
The macros most people mean when they talk about Lisp macros are discussed in CLTL2 Ch 8. They are expanded during evaluation or compilation.
CLTL2 CH 8: https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node97.html https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node97.html
Read macros are able to produce (or not produce) lisp objects by taking control of the stream processing for some period of time.