-
1.1 引言
1.1.1 设计目的
本次课程设计是在完成一个学期的编译原理课程之后,为了进一步加深对编译原理相关知识的理解,培养实际解决问题的能力而进...
1.1 引言
1.1.1 设计目的
本次课程设计是在完成一个学期的编译原理课程之后,为了进一步加深对编译原理相关知识的理解,培养实际解决问题的能力而进行的。结合本学期所开设的软件工程课程,本次课程设计实验过程要求按照软件工程的思想来组织开发过程,按照软件生命周期的阶段划分来进行。由于课程设计规模较小,所以对软件生命周期进行适当的合并,简化为五个阶段,即需求分析、总体设计、详细设计、编码实现和测试。
1.1.2 设计任务
针对本次课程设计我们设计了一个简化的pascal语言,称为mini-pascal。设计的任务就是开发出针对mini-pascal语言的编译程序。标准的编译程序结构分为五部分,分别是词法分析、语法分析、语义分析和中间代码生成、优化和目标代码生成。由于时间和能力所限,我们的编译程序只包括前三个部分,最后生成四元式形式的中间代码。
-1.1 Introduction 1.1.1 design purpose of this course is designed to complete a semester of compiler theory courses , in order to further deepen the knowledge of compiler theory understanding, develop practical problem-solving skills into practice. In light of the semester created software engineering courses The experimental curriculum design process requirements in the software engineering idea to organize the development process. in the software life cycle stages to. Due to the smaller size of the curriculum design, the software life cycle appropriate to consolidate, streamline and five stages that the
- 2022-05-22 18:39:40下载
- 积分:1
-
功能比较强的正则表达式分析器,支持重复次数。尝试完全采用C++实现。可能速度不快。...
功能比较强的正则表达式分析器,支持重复次数。尝试完全采用C++实现。可能速度不快。-function relatively strong in the regular expression analyzer, the number of repeat support. C to achieve completely. May slow.
- 2022-12-11 06:35:03下载
- 积分:1
-
Compiler Construction Principles and Practice of PDF format of this book introdu...
编译原理与实践本书介绍了PDF格式的经典系统、编译理论与技术,还包含了当前面向对象语言等比较新的语言编译技术。本书更有价值的是提供了一个较为完整的教学实践适用的样本语言,是一本理论与实践相结合的内容,不可多得的书籍。本书可作为高校教材、教师参考书,以及科研人员的编撰参考。
- 2022-05-28 04:57:22下载
- 积分:1
-
设计、编制、调试一个典型的语法分析程序,实现对如下文法的递归子程序法分析,进一
步掌握常用的语法分析方法。...
设计、编制、调试一个典型的语法分析程序,实现对如下文法的递归子程序法分析,进一
步掌握常用的语法分析方法。-Design, preparation, testing a typical parser to realize the following grammar for a recursive subroutine Analysis, to further understand the syntax of commonly used analytical methods.
- 2022-03-07 13:06:02下载
- 积分:1
-
解法:对原文法消除左递归,根据消除左递归后的等价文法建立语法树,而后对此语法树 进行后根遍历,即可得到后缀式....
解法:对原文法消除左递归,根据消除左递归后的等价文法建立语法树,而后对此语法树 进行后根遍历,即可得到后缀式.- Solution: Eliminates the left recursion to the original
grammar, after equal in value grammar establishment grammar tree which
eliminates the left recursion, after but the grammar tree carries on
the root to spread the calendar regarding this, after then obtains
decorates the type
- 2022-01-22 17:47:18下载
- 积分:1
-
一个小语言的词法分析器,由此可以写出其他各种语言的词法分析器。这对编译原理的初学者或许有一定的帮助。...
一个小语言的词法分析器,由此可以写出其他各种语言的词法分析器。这对编译原理的初学者或许有一定的帮助。-a small language lexical analyzer, it can be written in various languages other lexical analyzer. This compiler theory and beginners may be of some help.
- 2022-08-17 20:51:49下载
- 积分:1
-
C语言写的PASCAL语言形态的语法分析器
c语言写的pascal词法语法分析器-c language writes pascal morphology grammar analyzer
- 2022-03-19 19:12:37下载
- 积分:1
-
二进制运算符重载
binary operator overloading in c-binary operator overloading in c++
- 2023-07-28 11:05:03下载
- 积分:1
-
为开发一产品,苦于没有相关资料,采用机器上读取
为开发一产品,苦于没有相关资料,采用机器上读取-for the development of a product, there is no relevant information on the machines used to read
- 2023-02-27 08:00:04下载
- 积分:1
-
利用vc制作的模拟编译器的扫描程序,实现在输入字符串扫描分解为编译器能识别的符号。...
利用vc制作的模拟编译器的扫描程序,实现在输入字符串扫描分解为编译器能识别的符号。- Using the vc manufacture simulation compiler scanning
procedure, realizes in the input character string scanning decomposes
the mark which can distinguish for the compiler.
- 2023-04-24 06:45:03下载
- 积分:1