Lisp入门教程(刘鑫翻译).doc

  1. 1、本文档共35页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Lisp入门教程(刘鑫翻译)

Common LISP Hints Geoffrey J. Gordon ggordon@ Friday, February 5, 1993 Modified by Bruno Haible haible@ma2s2.mathematik.uni-karlsruhe.de 简体中文版翻译: 刘鑫 March.Liu@ Note: This tutorial introduction to Common Lisp was written for the CMU environment, so some of the details of running lisp toward the end may differ from site to site. 注意:这份 Common Lisp 入门教程是针对 CMU 环境编写,所以在其它环境运行 LISP时可能会有细节上的区别。 Further Information 附: The best LISP textbook I know of is Guy L. Steele Jr. _Common LISP: the Language_. Digital Press. 1984. 据我所知最好的 Lisp 书籍是: Guy L. Steele Jr. _Common LISP: the Language_. Digital Press. 1984. The first edition is easier to read; the second describes a more recent standard. (The differences between the two standards shouldnt affect casual programmers.) 第一版很容易阅读,第二版介绍了更新的标准。(两个标准的差异很 小,对于粗 心的程序员没有什么区别。) A book by Dave Touretsky has also been recommended to me, although I havent read it, so I cant say anything about it. 我还记得 Dave Touretsky 写了一本,不过我从来没读过,所以不能对那本书 发表评论。 Symbols 符号 A symbol is just a string of characters. There are restrictions on what you can include in a symbol and what the first character can be, but as long as you stick to letters, digits, and hyphens, youll be safe. (Except that if you use only digits and possibly an initial hyphen, LISP will think you typed an integer rather than a symbol.) Some examples of symbols: 符号仅仅是字符串。你可以在符号中包含字母、数字、连接符等等,唯一的限制就 是要以字母开头。(如果你只输入数字,最多再以一个连接符开头的话,LISP会认 为你输入了一个整数而不是符号。)例如: a b c1 foo bar baaz-quux-garply Some things you can do with symbols follow. (Things after a prompt are what you type to the LISP interpreter, while other things are what the LISP interpreter prints back to you. The ;

文档评论(0)

yurixiang1314 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档