登录
首页 » Compiler program » 自己写的一个编译程序,可以从二进制文件中读取一段c程序,进行表达式的识别和一些简单的c语句,最后生成三元式输出...

自己写的一个编译程序,可以从二进制文件中读取一段c程序,进行表达式的识别和一些简单的c语句,最后生成三元式输出...

于 2023-06-12 发布 文件大小:4.67 kB
0 232
下载积分: 2 下载次数: 1

代码说明:

自己写的一个编译程序,可以从二进制文件中读取一段c程序,进行表达式的识别和一些简单的c语句,最后生成三元式输出-To write a compiler, you can read from the binary files for some c procedures, identification and expression of c some simple statements, the last generation of ternary output

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 1、构造该算符优先文法的优先关系矩阵或优先函数; 2、输入串应是词法分析的输出二元式序列,即某算术表达式“实验项目一”的输出结果。输出为输入串是否为该文法定
    1、构造该算符优先文法的优先关系矩阵或优先函数; 2、输入串应是词法分析的输出二元式序列,即某算术表达式“实验项目一”的输出结果。输出为输入串是否为该文法定义的算术表达式的判断结果。 3、算符优先分析过程应能发现输入串出错。 -1, construction of the operator the priority of the priority relation matrix grammar or priority function 2, input strings should be the output of lexical analysis of binary sequence, that is, the arithmetic expression of a
    2023-06-11 00:45:03下载
    积分:1
  • 叟皆了51的汇编代码,希望读大家有所帮助
    叟皆了51的汇编代码,希望读大家有所帮助-Minds are 51 assembly code, I hope everyone reading help
    2023-08-05 18:05:03下载
    积分:1
  • 编译器 用C语言对下述文法和单词表定义的语言设计编制一个编译器...
    编译器 用C语言对下述文法和单词表定义的语言设计编制一个编译器-Compiler used in C language on the following definition of grammar and word list designed to prepare a language compiler
    2022-04-11 12:43:03下载
    积分:1
  • SIP software development record as a closed network, network structure of the co...
    SIP软件开发记录 由于通信网的封闭性,网络结构的复杂性,通信设备的多样性,使得通信软件难以在一个统一的平台(包括硬件平台和操作系统平台)下运行,所以迄今为止,通信行业的开源项目仍屈指可数。    下面,我们把通信类的软件简单的进行一下划分-SIP software development record as a closed network, network structure of the complex nature of the diversity of communications equipment, making it difficult to communication software in a unified platform (including the hardware platform and operating system platform) running, so far, the telecommunications industry is still a few open-source projects . Now, we kind of communication software for about a simple division
    2022-03-24 00:38:51下载
    积分:1
  • dropped by recursive approach to design their own compiler, generating PL/0 Stac...
    按递归下降方式设计其编译程序,生成PL/0栈式指令代码,然后解释执行。用(a=1)+2*(b=3+4*5)/2+2*a*b-(a=a+5)/ (c=2) 测试-dropped by recursive approach to design their own compiler, generating PL/0 Stack-code instructions, and then the interpretation and implementation. Using (a = 1) 2* (b = 3 4* 5)/2* a* b- (a = 5 a)/(c = 2) Testing
    2022-01-25 23:49:31下载
    积分: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
  • 本代码为根据老师的课程设计要求做的小编译器的词法分析部分和语法分析部分,附件中有老师的要求文档,还有语法分析时使用到的分析表...
    本代码为根据老师的课程设计要求做的小编译器的词法分析部分和语法分析部分,附件中有老师的要求文档,还有语法分析时使用到的分析表-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
  • PKU_1205 水处理厂输送水的问题,考虑沿岸城市(水处理厂)的数量,程序能确定输送方式的种数...
    PKU_1205 水处理厂输送水的问题,考虑沿岸城市(水处理厂)的数量,程序能确定输送方式的种数-PKU_1205
    2022-12-06 18:00:04下载
    积分:1
  • C_minus BNF language syntax definition of procedures from the list of statement...
    C_minus语言的BNF语法定义 程序由声明的列表(或序列)组成,声明可以是函数或变量声明,顺序是任意的。至少必须有一个声明。接下来是语义限制(这些在C中不会出现)。所有的变量和函数在使用前必须声明(这避免了向后backpatching引用)。程序中最后的声明必须是一个函数声明,名字为main。注意,C-缺乏原型,因此声明和定义之间没有区别(像C一样)。-C_minus BNF language syntax definition of procedures from the list of statement (or sequence), with a statement can be variable or function statement, the order is arbitrary. There must be at least one statement. Next is the semantic constraints (these will not arise C). All the variables and functions to be used in the statement (which avoids the use Backpatching backwards). Procedures must be the last statement is a function declaration, the name of the main. Attention C- lack of a prototype, and the definition of a statement is no difference between (the same as C).
    2022-03-04 15:33:26下载
    积分:1
  • winxpjihuo2.5
    winxpjihuo2.5
    2022-08-22 17:16:42下载
    积分:1
  • 696516资源总数
  • 106554会员总数
  • 12今日下载