-
这是一个编译器程序包括了编译原理中学习的所有内容
这是一个编译器程序包括了编译原理中学习的所有内容-This is a compiler compiler included the principle of learning all the elements
- 2022-11-02 07:10:03下载
- 积分: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
-
ll1的词法分析实现,没有短语分析,只是确定是不是LL1文法.
ll1的词法分析实现,没有短语分析,只是确定是不是LL1文法.-ll1 achieve the lexical analysis, no phrase, is not only determined LL1 grammar.
- 2022-03-11 02:02:20下载
- 积分:1
-
一个简单的词法分析器,1代表字符,2代表关键字(命令字),4带表算符界符, 注:要把wangs.txt这个文件放在桌面上,然后在这个TXT里写上你要识别的语句。...
一个简单的词法分析器,1代表字符,2代表关键字(命令字),4带表算符界符, 注:要把wangs.txt这个文件放在桌面上,然后在这个TXT里写上你要识别的语句。然后保存后关毕,在运行WANG词法分析.EXE进行词法分析。 完成识别后,会在相应的词面前出现以上代号。暂不能对数字进行识别。因为在某种请况下数字也可表是为字符……稍有困难,但完成老师的针对程序段:area=b+c*d。那简直是小菜一碟。-a simple lexical analyzer, a representative character, the two representatives keyword (command word), with four tables operator sector website Note : The wangs.txt the document on the desktop, then the TXT Lane write you to identify words. Then preserved customs Albert, running WANG lexical analysis. EXE for lexical analysis. After completing the identification, in the appropriate words appear in front of the above code. Provisional figures for the right not to identify. Because of the status of requests under certain figures might be for the characters ... the slightest difficulty, but the completion of procedural teachers : area = b, c* d. It is simply to touch.
- 2022-07-26 00:51:29下载
- 积分:1
-
can help you learn compiler
c compiler 源码
能帮助你学习编译器-can help you learn compiler
- 2023-01-16 15:05:04下载
- 积分:1
-
该程序能够实现简单的c语言词法,语法,语义分析。
该程序能够实现简单的c语言词法,语法,语义分析。- This procedure can realize the simple c language morphology,
the grammar, the semantic analysis.
- 2022-01-25 20:08:31下载
- 积分:1
-
pl0的编译程序源码,是用C编写的,很经典
pl0的编译程序源码,是用C编写的,很经典-pl0 the compiler source code is written using C, it is a classic
- 2022-03-04 16:53:35下载
- 积分:1
-
编译原理课程设计,语法分析.学校的课程设计,好象还有点用吧...
编译原理课程设计,语法分析.学校的课程设计,好象还有点用吧-compiler theory curriculum design, syntax analysis. School curriculum design, as if it still has some use
- 2022-03-21 03:46:45下载
- 积分:1
-
在程序中加入脚本支持
在程序中加入脚本支持-join in the proceedings to support script
- 2022-02-20 17:44:14下载
- 积分:1
-
本程序不能编译除大小写字母之外的编码
本程序需事先建立字母权值文后件才可运行
本程序从文件中读入文字,编译后写入文件,所以屏幕上不会直接出现答案...
本程序不能编译除大小写字母之外的编码
本程序需事先建立字母权值文后件才可运行
本程序从文件中读入文字,编译后写入文件,所以屏幕上不会直接出现答案-not build this program in addition to case-insensitive outside of the coding process required prior to the establishment of the letters after the value of the text pieces can Win OK this program read from the file into the text, compiled into the paper, not directly on the screen appeared the answer
- 2022-03-07 09:53:23下载
- 积分:1