-
由于时间紧迫及事先准备不足,编译器最后定型时暴露出不少问题及不足之处,主要有以下一些方面: 不支持数组数据类型,这是文法分析器设计时的一个疏漏,由于时间关系...
由于时间紧迫及事先准备不足,编译器最后定型时暴露出不少问题及不足之处,主要有以下一些方面: 不支持数组数据类型,这是文法分析器设计时的一个疏漏,由于时间关系,最后只得把扫描器中已做好的相关的数组部分删去。 对于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
-
JC1.0。本编译器包含完整的文档与程序。借助 Lex & Bison, masm 开发。语句5个,支持混合运算。输入输出作为两个 IO 语句(函数调用),由汇...
JC1.0。本编译器包含完整的文档与程序。借助 Lex & Bison, masm 开发。语句5个,支持混合运算。输入输出作为两个 IO 语句(函数调用),由汇编实现并编译为 io.obj,将由 Link 链接。生成 EXE。整个流程完整清晰,代码易读。-JC1.0. The compiler includes complete documentation and procedures. With Lex Bison, can develop. Statement 5, support mixed computing. Input and output as two IO statement (function call), compiled by the compiler to achieve and io.obj will link Link. EXE generation. The entire process, complete and clear, legible code.
- 2022-03-02 14:29:23下载
- 积分:1
-
自己做个课程设计(词法,语法),给大家能参考
自己做个课程设计(词法,语法),给大家能参考 -himself to be a curriculum design (morphology, syntax), we can make reference to thank
- 2022-03-20 18:43:48下载
- 积分:1
-
NASM是一个开源跨平台的汇编器。里面的源码有linux下和dos下的。包含一个NASM汇编教程,源码非常清晰,含少量汇编代码。...
NASM是一个开源跨平台的汇编器。里面的源码有linux下和dos下的。包含一个NASM汇编教程,源码非常清晰,含少量汇编代码。-NASM is an open source cross-platform assembler. Inside the source code under linux and dos are under. NASM contains a compilation of tutorials, source code is very clear, with a small amount of assembly code.
- 2022-03-30 13:18:34下载
- 积分:1
-
source for the program source code files directory exe executable file for the d...
source 为程序源代码文件目录
exe 为可执行文件目录
pics 为所有处理好的图片的目录
需要预先安装MinGW
MinGW为Mini Gnu for Windows
里面包含gcc for windows的编译器
将其拷贝值某目录,然后设置环境变量
path x:MinGWin
即可通过gcc(g++)命令进行编译-source for the program source code files directory exe executable file for the directory of pics for all deal with the need for a good picture of the catalog pre-installed MinGWMinGW for Mini Gnu for Windows which contains gcc for windows compiler to copy the value of a certain directory, and then set the environment variable path x: MinGW in you through the gcc (g++) command to compile
- 2022-07-22 12:54:55下载
- 积分:1
-
这是一个编译原理中,数的识别的一个程序,可以运行
这是一个编译原理中,数的识别的一个程序,可以运行-it is a program of indentify of number in complier principle,can run.
- 2022-03-25 23:03:54下载
- 积分:1
-
本代码为根据老师的课程设计要求做的小编译器的词法分析部分和语法分析部分,附件中有老师的要求文档,还有语法分析时使用到的分析表...
本代码为根据老师的课程设计要求做的小编译器的词法分析部分和语法分析部分,附件中有老师的要求文档,还有语法分析时使用到的分析表-This code is based on the teacher" s curriculum design requirements to do a small part of the compiler" s lexical analysis and syntax analysis section, in the annex to the request of the teacher documents, as well as the use of grammatical analysis to the analysis table
- 2022-03-21 23:02:52下载
- 积分:1
-
LCD接口使用CodeVision AVR
Lcd interfacing using code vision avr
- 2022-07-10 14:44:36下载
- 积分:1
-
编译原理及实践课后答案及部分代码,要的自己下
编译原理及实践课后答案及部分代码,要的自己下-Compiler Construction Principles and Practice of after-school and part of the answer code
- 2023-01-20 01:15:03下载
- 积分:1
-
用c语言实现的语法语义分析程序 实现了四元式得生成功能齐全...
用c语言实现的语法语义分析程序 实现了四元式得生成功能齐全-with language syntax semantic analysis of the program in four yuan-generation multifunctional
- 2022-05-29 02:22:19下载
- 积分:1