在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例Lisp → 《The Scheme Programming Language (4th Edition)》

《The Scheme Programming Language (4th Edition)》

Lisp

下载此实例
  • 开发语言:Others
  • 实例大小:4.34M
  • 下载次数:2
  • 浏览次数:20
  • 发布时间:2023-01-16
  • 实例类别:Lisp
  • 发 布 人:老刘
  • 文件格式:.pdf
  • 所需积分:0
 相关标签:

实例介绍

【实例简介】《The Scheme Programming Language (4th Edition)》

【实例截图】

【核心代码】

CHAPTER 1. INTRODUCT ION ..................................................................................................................................... 6
Section 1.1. Scheme Syntax ............................................................................................................................. 10
Section 1.2. Scheme Naming Conventions ...................................................................................................... 12
Section 1.3. Typographical and Notational Conventions ................................................................................ 13
CHAPTER 2. GETTING STARTED ................................................................................................................... 15
Section 2.1. Interacting with Scheme .............................................................................................................. 15
Section 2.2. Simple Expressions ...................................................................................................................... 18
Section 2.3. Evaluating Scheme Expressions .................................................................................................. 25
Section 2.4. Variables and Let Expressions ..................................................................................................... 26
Section 2.5. Lambda Expressions .................................................................................................................... 30
Section 2.6. Top-Level Definitions ................................................................................................................... 34
Section 2.7. Conditional Expressions .............................................................................................................. 39
Section 2.8. Simple Recursion ......................................................................................................................... 46
Section 2.9. Assignment ................................................................................................................................... 53
CHAPTER 3. GOING FURTHER ....................................................................................................................... 64
Section 3.1. Syntactic Extension ...................................................................................................................... 64
Section 3.2. More Recursion ........................................................................................................................... 71
Section 3.3. Continuations .............................................................................................................................. 80
Section 3.4. Continuation Passing Style .......................................................................................................... 85
Section 3.5. Internal Definitions...................................................................................................................... 88
Section 3.6. Libraries ...................................................................................................................................... 93
CHAPTER 4. PROCEDURE S AND VARIABLE BINDI NGS ........................................................................................... 96
Section 4.1. Variable References ..................................................................................................................... 97
Section 4.2. Lambda ........................................................................................................................................ 98
Section 4.3. Case-Lambda ............................................................................................................................... 99
Section 4.4. Local Binding ............................................................................................................................ 101
Section 4.5. Multiple Values .......................................................................................................................... 105
Section 4.6. Variable Definitions ................................................................................................................... 106
Section 4.7. Assignment ................................................................................................................................. 108
CHAPTER 5. CONTROL O PERATIONS ...................................................................................................................... 110
Section 5.1. Procedure Application ................................................................................................................ 110
Section 5.2. Sequencing .................................................................................................................................. 112
Section 5.3. Conditionals ............................................................................................................................... 113
Section 5.4. Recursion and Iteration .............................................................................................................. 118
Section 5.5. Mapping and Folding ................................................................................................................ 121
Section 5.6. Continuations ............................................................................................................................ 127
Section 5.7. Delayed Evaluation ................................................................................................................... 132
Section 5.8. Multiple Values .......................................................................................................................... 135
Section 5.9. Eval ............................................................................................................................................ 142
- 4 -
CHAPTER 6. OPERATION S ON OBJECTS ............................................................................................................... 144
Section 6.1. Constants and Quotation ........................................................................................................... 144
Section 6.2. Generic Equivalence and Type Predicates ................................................................................ 146
Section 6.3. Lists and Pairs ........................................................................................................................... 159
Section 6.4. Numbers ..................................................................................................................................... 172
Section 6.5. Fixnums ..................................................................................................................................... 197
Section 6.6. Flonums ..................................................................................................................................... 208
Section 6.7. Characters ................................................................................................................................. 217
Section 6.8. Strings ........................................................................................................................................ 222
Section 6.9. Vectors ....................................................................................................................................... 229
Section 6.10. Bytevectors .............................................................................................................................. 233
Section 6.11. Symbols .................................................................................................................................... 248
Section 6.12. Booleans .................................................................................................................................. 250
Section 6.13. Hashtables ............................................................................................................................... 250
Section 6.14. Enumerations ........................................................................................................................... 258
CHAPTER 7. INPUT AND OUTPUT ......................................................................................................................... 263
Section 7.1. Transcoders ............................................................................................................................... 265
Section 7.2. Opening Files ............................................................................................................................ 267
Section 7.3. Standard Ports ........................................................................................................................... 270
Section 7.4. String and Bytevector Ports ....................................................................................................... 271
Section 7.5. Opening Custom Ports ............................................................................................................... 274
Section 7.6. Port Operations ......................................................................................................................... 277
Section 7.7. Input Operations ........................................................................................................................ 281
Section 7.8. Output Operations ..................................................................................................................... 286
Section 7.9. Convenience I/O ........................................................................................................................ 288
Section 7.10. Filesystem Operations ............................................................................................................. 294
Section 7.11. Bytevector/String Conversions ................................................................................................. 294
CHAPTER 8. SYNTACTIC EXTENSION ................................................................................................................... 297
Section 8.1. Keyword Bindings ...................................................................................................................... 298
Section 8.2. Syntax-Rules Transformers ........................................................................................................ 300
Section 8.3. Syntax-Case Transformers ......................................................................................................... 305
Section 8.4. Examples.................................................................................................................................... 319
CHAPTER 9. RECORDS ........................................................................................................................................... 329
Section 9.1. Defining Records ....................................................................................................................... 329
Section 9.2. Procedural Interface .................................................................................................................. 338
Section 9.3. Inspection .................................................................................................................................. 343
CHAPTER 9. RECORDS ........................................................................................................................................... 347
Section 9.1. Defining Records ....................................................................................................................... 347
Section 9.2. Procedural Interface .................................................................................................................. 356
Section 9.3. Inspection .................................................................................................................................. 360
- 5 -
CHAPTER 11. EXCEPTIO NS AND CONDITIONS ..................................................................................................... 365
Section 11.1. Raising and Handing Exceptions ............................................................................................. 366
Section 11.2. Defining Condition Types ......................................................................................................... 370
Section 11.3. Standard Condition Types ........................................................................................................ 375
CHAPTER 12. EXTENDED EXAMPLES ....................................................................................................... 386
Section 12.1. Matrix and Vector Multiplication ............................................................................................ 387
Section 12.2. Sorting ..................................................................................................................................... 393
Section 12.3. A Set Constructor ..................................................................................................................... 395
Section 12.4. Word Frequency Counting ....................................................................................................... 399
Section 12.5. Scheme Printer ........................................................................................................................ 404
Section 12.6. Formatted Output .................................................................................................................... 408
Section 12.7. A Meta-Circular Interpreter for Scheme ................................................................................... 411
Section 12.8. Defining Abstract Objects ........................................................................................................ 416
Section 12.9. Fast Fourier Transform ........................................................................................................... 421
Section 12.10. A Unification Algorithm ......................................................................................................... 426
Section 12.11. Multitasking with Engines ...................................................................................................... 429
REFERENCES ........................................................................................................................................................... 439
FORMAL SYNTAX ..................................................................................................................................................... 441
SUMMARY OF FORMS ............................................................................................................................................... 448

标签:

实例下载地址

《The Scheme Programming Language (4th Edition)》

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警