-
是一个不错的语法分析器,里面实现了语法分析的算法,并判断了一些优先级的控制和对栈的操作.
是一个不错的语法分析器,里面实现了语法分析的算法,并判断了一些优先级的控制和对栈的操作.-is a good parser, they achieved the syntax analysis algorithms, and a judgment of priority to the control and operation of the stack.
- 2022-02-09 19:16:52下载
- 积分:1
-
(1) 给定一段符合Pascal子集语法的语言,能成功转换成C语言;
(2) 一个简单的说明文档;
(3) 2007.7.14之前上传到ftp:// C...
(1) 给定一段符合Pascal子集语法的语言,能成功转换成C语言;
(2) 一个简单的说明文档;
(3) 2007.7.14之前上传到ftp:// C07:C07@10.11.3.71/upload,用学号建立自己的目录;
(4) (可额外加分5分)若有出错处理功能,请在说明文档中写明可以处理哪几项错误。
注意事项:
(1) 两人一组
(2) 可以使用词法、语法自动生成工具,windows下有Flex,Bison,Linux下有Lex,Yacc,Java的有Jlex,JavaCC,ANTLR等
(3) 不用考虑Pascal和C的关键词不同问题,即Pascal子集语言中假设不出现int,for等作为变量标志符
(4) read()和write()可用由scanf(),printf()等组成的语句转换。
(5) 如果有疑问可以发信给我 xpqiu@fudan.edu.cn.
- 2022-03-23 02:20:36下载
- 积分:1
-
一个简单的编译器,可以实现简单的画图语句的解析,最终画出简单的图形。涉及程序编译器的实现几个步骤,词法分析,语法分析,语义分析,等等。...
一个简单的编译器,可以实现简单的画图语句的解析,最终画出简单的图形。涉及程序编译器的实现几个步骤,词法分析,语法分析,语义分析,等等。-a simple compiler can achieve a simple drawing of analytic statement, the final draw simple graphics. The procedures compiler in several steps, lexical analysis, grammar analysis, semantic analysis, and so on.
- 2022-04-14 21:30:32下载
- 积分:1
-
这是一份实验报告,目的是掌握YACC的使用方法,了解YACC处理二义性的方法。
用YACC等工具生成如下文法表示的表达式对应的计算器
exp...
这是一份实验报告,目的是掌握YACC的使用方法,了解YACC处理二义性的方法。
用YACC等工具生成如下文法表示的表达式对应的计算器
exp->exp + exp | exp - exp| exp * exp |exp / exp |exp ^ exp | - exp |(exp) |NUM
对于输入的表达式,能输出结果。比如:
3 +(4 *5)结果应为23
当出现错误时可以进行错误处理。
-This is a test report, the purpose is to master the use YACC to learn YACC handling of the ambiguity approach. Using tools such as YACC grammar that generates the following expression for the corresponding calculator exp-> exp+ exp | exp- exp | exp* exp | exp/exp | exp ^ exp |- exp | (exp) | NUM expression for the input type, can be output. For example: 3+ (4* 5) the result should be 23 when the error can be error-handling.
- 2022-05-23 10:34:44下载
- 积分:1
-
这是一个课程设计大纲编译原理,轮廓可以放…
此为一编译原理的课程设计大纲,在里面可以根据大纲的要求编写相应的代码-this as a compiler theory of curriculum design outline, the outline can be inside prepared at the request of the corresponding code
- 2022-02-14 23:42:09下载
- 积分:1
-
这几天做编译的课程设计,只做了词法分析部分,感觉很不错!
这几天做编译的课程设计,只做了词法分析部分,感觉很不错!-these days do a translation of the curriculum design, doing some of the lexical analysis, I feel very good!
- 2022-03-19 08:21:32下载
- 积分:1
-
pl/0, the compilation of principles, Tsinghua second edition. c++ realize the
pl/0,汇编原理、清华第二版。c++实现的-pl/0, the compilation of principles, Tsinghua second edition. c++ realize the
- 2022-02-10 02:02:03下载
- 积分:1
-
1.The content is too simple
2.Is not a sourcecode or document
3.lost some fi...
1.The content is too simple
2.Is not a sourcecode or document
3.lost some files
4.Description is not detailed or not correct
5.Compressed file has password
6.Sourcecode duplicate or already exist
po
- 2022-10-30 23:15:03下载
- 积分:1
-
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
-
一个简单的C
一个简单的类C语言的编译器的实现
可以参考学习编译原理的基本实现-a simple C-like programming language compiler can refer to the realization of the principle of learning basic compiler to achieve
- 2022-03-10 02:16:35下载
- 积分:1