Quoted Expressions Quoted Expressions In this chapter we’ll implement a new type of Lisp Value called a Q-Expression. This stands for quoted expression, and is a type of Lisp...
Function Calls Function Calls The evaluation rule for function call forms is simple: evaluate the remaining elements of the list as Lisp forms and pass the resulting values to ...
Macros: Defining Your Own(定义你自己的宏) Macros: Defining Your Own(定义你自己的宏) Now it’s time to start writing your own macros. The standard macros I covered in the previous chapter hint...
Variable Basics(变量的基础知识) Variable Basics(变量的基础知识) As in other languages, in Common Lisp variables are named places that can hold a value. However, in Common Lisp, variables are...
*FEATURES* and Read-Time Conditionalization *FEATURES* and Read-Time Conditionalization Before you can implement this API in a library that will run correctly on multiple Commo...
2.9 输入输出 (Input and Output) 2.9 输入输出 (Input and Output) 到目前为止,我们已经利用顶层偷偷使用了 I/O 。对实际的交互程序来说,这似乎还是不太够。在这一节,我们来看几个输入输出的函数。 最普遍的 Common Lisp 输出函数是 format 。接受两个或两个以上的实参,第一个实参决定输出...