书栈网 · BookStack 本次搜索耗时 0.014 秒,为您找到 930 个相关结果.
  • Coding Grammars

    527 2020-12-10 《Build your own Lisp》
    Coding Grammars Coding Grammars So what does code that looks like a grammar…look like? Let us take a look at mpc by trying to write code for a grammar that recognizes the lan...
  • Unconditional Execution

    Unconditional Execution Unconditional Execution As useful as the value accumulation constructs are, **LOOP** wouldn’t be a very good general-purpose iteration facility if ther...
  • A. GIMP History

    Appendix A. GIMP History 1. The Very Beginning Appendix A. GIMP History 1. The Very Beginning According to Peter Mattis and Spencer Kimball, the original creators of GIMP, in ...
  • 6.4 示例:实用函数 (Example: Utilities)

    6.4 示例:实用函数 (Example: Utilities) 6.4 示例:实用函数 (Example: Utilities) 2.6 节提到过,Lisp 大部分是由 Lisp 函数组成,这些函数与你可以自己定义的函数一样。这是程序语言中一个有用的特色:你不需要改变你的想法来配合语言,因为你可以改变语言来配合你的想法。如果你想要 Common L...
  • 3.6 存取 (Access)

    3.6 存取 (Access) 3.6 存取 (Access) Common Lisp 有额外的存取函数,它们是用 car 跟 cdr 所定义的。要找到列表特定位置的元素,我们可以调用 nth , > ( nth 0 '(a b c)) A 而要找到第 n 个 cdr ,我们调用 nthcdr : > ( nt...
  • The Parts of a LOOP

    The Parts of a LOOP The Parts of a LOOP You can do the following in a **LOOP** : Step variables numerically and over various data structures Collect, count, sum, minimize, an...
  • Macros(宏)

    Macros(宏) Macros(宏) While special operators extend the syntax of Common Lisp beyond what can be expressed with just function calls, the set of special operators is fixed by the...
  • 4.3 JSON

    JSON 序列化 反序列化 练习 JSON JSON是JavaScript Object Notation的缩写,它是一种数据交换格式。 在JSON出现之前,大家一直用XML来传递数据。因为XML是一种纯文本格式,所以它适合在网络上交换数据。XML本身不算复杂,但是,加上DTD、XSD、XPath、XSLT等一大堆复杂的规范以后,任何正常的软...
  • Comments

    334 2020-12-10 《Build your own Lisp》
    Comments Comments While we’re building in new syntax to the language we may as well look at comments. Just like in C, we can use comments in inform other people (or ourselves...
  • The FOO Language

    The FOO Language The FOO Language So, enough theory. I’ll give you a quick overview of the language implemented by FOO, and then you’ll look at the implementation of the two FO...