-
由于时间紧迫及事先准备不足,编译器最后定型时暴露出不少问题及不足之处,主要有以下一些方面: 不支持数组数据类型,这是文法分析器设计时的一个疏漏,由于时间关系...
由于时间紧迫及事先准备不足,编译器最后定型时暴露出不少问题及不足之处,主要有以下一些方面: 不支持数组数据类型,这是文法分析器设计时的一个疏漏,由于时间关系,最后只得把扫描器中已做好的相关的数组部分删去。 对于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
-
c语言写的VB编译器
c语言写的VB编译器-c write VB language compiler
- 2022-03-24 00:32:57下载
- 积分:1
-
Open Source Watom C Complier Package.the Complier support IA32,etc.
To kown...
Open Watcom 的 C 编译器源代码,别的就不说了- Open Source Watom C Complier Package.the Complier support IA32,etc.
To kown the detail,Please view the Package.
- 2022-03-24 05:51:13下载
- 积分:1
-
Based on VIRTOOLS packaging tools can be packaged into exe files virtools
基于VIRTOOLS的封装工具,可以把virtools文件打包成为exe-Based on VIRTOOLS packaging tools can be packaged into exe files virtools
- 2022-07-15 23:05:40下载
- 积分:1
-
一个编译原理的教案,解说得很详细,相信对大家会有很大的帮助的...
一个编译原理的教案,解说得很详细,相信对大家会有很大的帮助的-a compiler principles of lesson plans, explained very clearly, I believe there will be very helpful to the
- 2023-02-26 00:15:04下载
- 积分:1
-
不需要做任何修改的lex
不需要做任何修改的lex-yacc的demo,可以在parser generator或lex-bison下成功运行-Do not need to make any changes to the lex-yacc the demo, or a parser generator in the lex-bison successfully running
- 2022-01-26 07:36:44下载
- 积分: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#做的《编译原理》的PROJECT
用C#做的《编译原理》的PROJECT--语法分析器(算符优先法)
文法,句子均支持从TXT文件输入或者手工键入,分析结果可保存为RTF文件-With C# To do the
- 2022-09-12 13:50:03下载
- 积分:1
-
正则表达式
regex-spencer-3.8-lib.zip
- 2022-03-05 17:35:07下载
- 积分:1
-
补充一个tc20英文版的编译器
补充一个tc20英文版的编译器- Supplements a tc20 English version the compiler
- 2022-01-26 05:31:27下载
- 积分:1