-
LL(1)文法使用的是确定的自顶向下的分析技术。LL(1)的含义是:第一个L表明自顶向下分析是从左向右扫描输入串,第2个L表明分析过程中将使用最左推导,1表明只...
LL(1)文法使用的是确定的自顶向下的分析技术。LL(1)的含义是:第一个L表明自顶向下分析是从左向右扫描输入串,第2个L表明分析过程中将使用最左推导,1表明只需向右看一个符号便可决定如何推导,即选择哪个产生式(规则)进行推导。
LL(1)文法的判别需要依次计算FIRST集、FOLLOW集和SELLECT集,然后判断是否为LL(1)文法,最后再进行句子分析。
-LL (1) grammar using a set top-down analysis techniques. LL (1) the meaning is: the first one L shows a top-down analysis is a scan input string from left to right, the first two L shows the analysis process will be the most left-derivation, one that will be just right to see a sign can decide how to derive, choose what Production (rules) for derivation. LL (1) grammar, followed by calculation of the discriminant needs FIRST sets, FOLLOW sets and SELLECT set, and then determine whether to LL (1) grammar, the last sentence further analysis.
- 2023-02-02 20:20:03下载
- 积分:1
-
词法分析器
词法分析器-lexical analyzer
- 2023-06-13 04:10:03下载
- 积分:1
-
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
-
自己编的一个小程序,供大家参考,有不足之处请提意见。
自己编的一个小程序,供大家参考,有不足之处请提意见。-A small program is writed by myself,supply with you,please give me opinion.
- 2022-03-03 08:45:28下载
- 积分:1
-
adaboost code in matlab
adaboost code in matlab
- 2022-01-26 06:23:19下载
- 积分:1
-
这是一个完整的词法分析器,用C++编写,并有测试文件
这是一个完整的词法分析器,用C++编写,并有测试文件-This is a complete lexical analyzer, C++, and test document
- 2022-10-12 02:55:03下载
- 积分:1
-
PL/0语言的词法分析,主要是将每个词识别并且读入
PL/0语言的词法分析,主要是将每个词识别并且读入-PL/0 language lexical analysis, mainly to identify each word and read
- 2023-06-10 07:45:03下载
- 积分:1
-
has some history of C language compiler, originally developed for Motorola 68000...
一款拥有一定历史的C语言编译器,最初为MOTOROLA 68000 开发,后来为其他一些通用处理器实现了后端,支持C99中的大部分新特性。-has some history of C language compiler, originally developed for Motorola 68000, Later, some of the other processor to achieve a common back-end, the C99 support most of the new properties.
- 2023-04-14 06:00:04下载
- 积分:1
-
本代码是语音识别应用,语音识别产品中的罪恶…
本代码是语音识别的应用程序,语音识别的产品是新加坡的INFO,需要的请下载-This code is speech recognition applications, speech recognition products in Singapore INFO, need to download
- 2022-08-19 08:19:40下载
- 积分:1
-
Basic语言解释器.zip
Basic语言解释器.zip-Basic language interpreter. Zip
- 2022-01-26 05:32:37下载
- 积分:1