-
这是一个用C++实现的语法制导翻译程序,当输入一个表达式时可以将其转化为相应的四元式...
这是一个用C++实现的语法制导翻译程序,当输入一个表达式时可以将其转化为相应的四元式-This is a realization of the C syntax translation guided procedure, when an input expression can be translated into the corresponding four yuan-
- 2022-01-26 08:09:45下载
- 积分:1
-
C语言来构造编译器的,十分详细的源代码,还有注释
C语言来构造编译器的,十分详细的源代码,还有注释-on the use of C language compiler construction, the site has its source code matching.
- 2022-05-06 23:42:52下载
- 积分:1
-
编译原理课程的试验中的语法分析部分,程序比较长,附带报告...
编译原理课程的试验中的语法分析部分,程序比较长,附带报告-compiler theory courses in grammar test analysis, long procedures, fringe report
- 2023-08-06 01:10:03下载
- 积分:1
-
YACC和Lex集成开发环境,现在要找到它还真不容易,加上自己收集的一些例子,希望对大家有帮助....
YACC和Lex集成开发环境,现在要找到它还真不容易,加上自己收集的一些例子,希望对大家有帮助.-integrated development environment, now find it really is not easy, with its own collection of some examples, and I hope to be helpful.
- 2022-01-28 14:51:27下载
- 积分:1
-
目的:通过编写简单的YACC程序熟悉YACC词法分析工具的基本用法,及词法分析器的设计思路。编写包括赋值语句、if语句以及含有加合乘运算的表达式等语法结构的pa...
目的:通过编写简单的YACC程序熟悉YACC词法分析工具的基本用法,及词法分析器的设计思路。编写包括赋值语句、if语句以及含有加合乘运算的表达式等语法结构的pascal子集语言的语法分析器。 功能:程序由两个模块LEX和YACC构成,YACC使用LEX分析后的正规单词输出流-Objective : to prepare a simple procedure with YACC YACC lexical analysis of the basic tools to use, and the lexical analyzer designs. Preparation including assignment if statements containing Addition and multiplication of expressions such as grammatical structure of the pascal subset of the language syntax analyzer. Function : procedures by the two modules constitute LEX and YACC, YACC LEX analysis using the formal word output streams
- 2022-01-26 03:38:11下载
- 积分:1
-
Recursive descent parser recursive recursive descent parser drop grammar parser...
递归下降分析器递归下降分析器删除语法分析器递归下降分析器
- 2022-03-23 12:08:03下载
- 积分:1
-
这个是编译原理的词法分析的实验报告!很不错,希望大家支持!...
这个是编译原理的词法分析的实验报告!很不错,希望大家支持!-this principle is to compile the lexical analysis of the experimental report! Quite well, and hope that we support!
- 2022-06-16 13:06:23下载
- 积分: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
-
C语言编写的简单的将汇编语言文件转化为单词二元式流文件的小软件。...
C语言编写的简单的将汇编语言文件转化为单词二元式流文件的小软件。-,,
- 2022-07-03 07:26:42下载
- 积分:1
-
由于时间紧迫及事先准备不足,编译器最后定型时暴露出不少问题及不足之处,主要有以下一些方面: 不支持数组数据类型,这是文法分析器设计时的一个疏漏,由于时间关系...
由于时间紧迫及事先准备不足,编译器最后定型时暴露出不少问题及不足之处,主要有以下一些方面: 不支持数组数据类型,这是文法分析器设计时的一个疏漏,由于时间关系,最后只得把扫描器中已做好的相关的数组部分删去。 对于float数据类型的支持,直到语义分析都是正常的,也能生成相应的汇编代码,但由于我们对8086/8088指令系统本身了解不足,这样的汇编代码将只能做到含义上完全忠实于源程序,但不能运行。 对于局部变量的支持,则于时间紧迫,所有的局部变量全被处理成静态变量。使递归函数不能得到正确的结果。 对于函数调用语句,不进行参数匹配检查,如果参数数量不对,也将能通过编译,但运行时将产生非法操作。 对&& !等逻辑操作在最后生成代码时处理比较粗燥,生成的代码在逻辑复杂时将不能保证运行正常。 接下来有一些,不能说是缺陷,但必须说明的问题: 对于main函数,没有参数表,通回类型也必须为void,但如果写上参数表及其他返回类型也能编译通过,生成代码时将简单地忽略,不影响最后的代码的运行。 对于while,for,if语句,其语句体不管是一句还是多句,必须都有{}围起来。这跟C语言中若是一句则可省略{}不同。-Due to the time constraints and lack of preparation in advance, the compiler finalized when exposed numerous problems and shortcomings, mainly in the following aspects : no support for array data type, which is grammar analyzer design of an omission, because of the time, the final could only have scanners do phase customs array deleted. For float data types of support until semantic analysis is normal, and can generate the corresponding assembly code, but because of our 808
- 2022-01-26 16:03:11下载
- 积分:1