-
由于时间紧迫及事先准备不足,编译器最后定型时暴露出不少问题及不足之处,主要有以下一些方面: 不支持数组数据类型,这是文法分析器设计时的一个疏漏,由于时间关系...
由于时间紧迫及事先准备不足,编译器最后定型时暴露出不少问题及不足之处,主要有以下一些方面: 不支持数组数据类型,这是文法分析器设计时的一个疏漏,由于时间关系,最后只得把扫描器中已做好的相关的数组部分删去。 对于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
-
win32 exe程序反汇编
win32 exe程序反汇编-win32 the exe procedure instead assembles
- 2022-05-06 00:56:41下载
- 积分:1
-
C programm for Poissionous probability distribtion
C programm for Poissionous probability distribtion
- 2022-02-25 05:32:18下载
- 积分:1
-
basic explanation for the source code microsoft visual studio environment throug...
basic解释器源代码
microsoft visual studio 6.0环境下通过-basic explanation for the source code microsoft visual studio environment through 6.0
- 2022-07-27 05:08:47下载
- 积分:1
-
编制一个词法分析程序,从输入的源程序中,分析出各个具有独立意义的单词,即基本保留字、标识符、常量、运算符、界符五大类。并依次输出每类单词,错误时记下出错的行列,...
编制一个词法分析程序,从输入的源程序中,分析出各个具有独立意义的单词,即基本保留字、标识符、常量、运算符、界符五大类。并依次输出每类单词,错误时记下出错的行列,出错原因,然后跳过错误部分继续分析-compiled a lexical analysis procedures from the importation of the source, the analysis of the various independent significance of the word, that is to retain the basic character identifier, constants, and Operators, the industry address five major categories. And each type of output followed by the words, the wrong way down the ranks wrong, wrong reasons, then jump to the wrong part analysis
- 2023-04-16 02:05:03下载
- 积分:1
-
VisulASMSetup(汇编集成)
VisulASMSetup(汇编集成)-VisulASMSetup (assembly integration)
- 2022-05-09 01:22:56下载
- 积分:1
-
是一个不错的语法分析器,里面实现了语法分析的算法,并判断了一些优先级的控制和对栈的操作.
是一个不错的语法分析器,里面实现了语法分析的算法,并判断了一些优先级的控制和对栈的操作.-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
-
编译原理的一个题目:算符优先分析
编译原理的一个题目:算符优先分析-Compilation Principle of a topic: operator priority analysis
- 2023-05-29 10:30:03下载
- 积分:1
-
智能的词法分析 ,能任意输入正则表达式,能求出NFA,DFA,minDFA,和最后的匹配情况...
智能的词法分析 ,能任意输入正则表达式,能求出NFA,DFA,minDFA,和最后的匹配情况-Lexical analysis of intelligence, can enter any regular expression can be obtained NFA, DFA, minDFA, and the final match of the situation
- 2022-05-15 23:03:00下载
- 积分:1
-
TINY+编译器源码
语言表达式的定义
(1) <表达式> ::= <算术表达式>|<逻辑表达式>...
TINY+编译器源码
语言表达式的定义
(1) ::= |
(2) ::= ±|±|
(3) ::= *|/|
(4) ::=
(5) ::= |
(6) ::= or |
(7) ::= and |
(8) ::= |not
(9) ::= | | |
(10) ::= ||=| =-err
- 2023-04-14 01:05:03下载
- 积分:1