VC毕业论文Scheme解释程序的实现.doc

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

Scheme解释程序的实现 论文作者姓名: 申请学位专业: 申请学位类别: 指导教师姓名(职称): 论文提交日期: Scheme解释程序的实现 摘 要 Scheme是一种函数式编程语言,是第一个完全支持词法作用域、第一级过程以及继续的LISP方言。它语法简洁但功能强大,而且非常优雅,具有数学的美感 关键词:解释程序;Scheme;垃圾回收;虚拟的寄存器机器 Implementation of the Scheme Interpreter Abstract Scheme, a function programming language, is the first dialect of LISP to fully support lexical scoping, first-class procedures, and continuations. With perfect design it is very simple, but powerful. And many programming technologies and mathematics theories can be found in it. Programming in scheme, the development efficiency can be enhanced enormously. However, it is very easy to master and use scheme, because its syntax could be learned quickly. In the scheme interpreter design, the module design concept has been used fully. After the content of scheme and the structure of interpreter are mastered, the scheme interpreters structure is designed. And then the interfaces between modules are defined. After all of above are done, these modules and interfaces are implemented one by one. The core of the scheme interpreter is the Virtual Register Machine with a set of supported basic instructions. In the Virtual Register Machine, the memory is managed through vector model with the garbage collection facility. After analyzed by the lexical analyzer, Scheme source codes are parsed into internal list structures. Then these list structures are converted into the basic instructions by evaluator module. And these instructions are executed through registers in the Virtual Register Machine. Key words: Interpreter; Scheme; Garbage Collection; Virtual Register Machine 目 录 论文总页数:24页 1 引言 1 1.1 课题背景 1 1.2 研究意义 1 1.3 研究方法 1 2 Scheme语言 2 2.1 发展历史与现状 2 2.2 Scheme语言介绍 2 2.3 Scheme的特点 3 3 相关理论基础 3 4 解释程序的整体结构 3 4.1 词法分析器 4 4.2 类型系统 4 4.3 循环求值器 4 4.4 虚拟的寄存器机器 5 4.5 内存管理与垃圾回收 5 5 解释程序的实现 6 5.1 类型系统 6 5.2 词法分析 7 5.3 表达式求值的环境模型 7 5.3.1 环境模型 7 5.3.2 环境操作 9 5.3.3过程应用的环境模型 9 5.3.4 环境模型的实现 10 5.4 尾递归 11 5.5 虚拟的寄存器机器 13 5.5.1 寄存器 14 5.5.2 存储模型 15 5.5.3 基本表操作的

文档评论(0)

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

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

1亿VIP精品文档

相关文档