登录
首页 » Compiler program » 这是一个模拟语言的编译程序

这是一个模拟语言的编译程序

于 2022-03-02 发布 文件大小:8.83 kB
0 119
下载积分: 2 下载次数: 1

代码说明:

这是一个模拟的C语言编译器---Little C程序。可支持递归、if语句、do-while、return等语句。-This is a simulation of the C language compiler-Little C procedures. Support recursion, if statements, do-while, return and other statements.

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

发表评论

0 个回复

  • c++ language, c
    c++语言编写,c-minue的语法分析器。-c++ language, c-minue syntax analyzer.
    2022-11-14 13:30:03下载
    积分:1
  • 这是一个此法分析器的手工构造实例,程序很简洁。
    这是一个此法分析器的手工构造实例,程序很简洁。-This is a method of manual analyzer tectonic example, a very simple procedure.
    2022-07-17 21:34:47下载
    积分:1
  • 《编译原理及实践》一书的电子版,该电子版很清晰
    《编译原理及实践》一书的电子版,该电子版很清晰- Compiler Construction Principles and Practice of electronic version of the book, the electronic version is very clear
    2023-01-21 23:30:04下载
    积分:1
  • c写的plo源程序,包括词法分析,语法分析,语义分析,可以通过vc++6.0编译...
    c写的plo源程序,包括词法分析,语法分析,语义分析,可以通过vc++6.0编译-c write plo source, including lexical analysis, syntax analysis, semantic analysis, can vc++ 6.0 compiler
    2022-02-07 13:27:22下载
    积分:1
  • PASCAL 源程序转 C 语言源程序
    PASCAL 源程序转 C 语言源程序-PASCAL C language source to source
    2022-06-03 00:39:48下载
    积分:1
  • gc6.7 一个适用于CC++的内存垃圾回收器,可以像Java中那样随意的分配内存而不用释放,也不必担心内存泄漏了...
    gc6.7 一个适用于CC++的内存垃圾回收器,可以像Java中那样随意的分配内存而不用释放,也不必担心内存泄漏了-gc6.7 an application to the C C memory for the garbage collector. Java can be as arbitrary as the allocation of memory instead of the release, there is no need to worry about a memory leak
    2023-07-17 12:50:04下载
    积分:1
  • 该文描述了C语言表达式的文法,并由该文法生成算符优先矩阵和算符优先函数,讨论了C语言表达式的特点和文法分析过程。...
    该文描述了C语言表达式的文法,并由该文法生成算符优先矩阵和算符优先函数,讨论了C语言表达式的特点和文法分析过程。-The paper describes the expression of the C language grammar, grammar generated by the operator priority matrix and operator priority function to discuss the C language features of the expression and grammar analysis.
    2022-08-16 05:23:38下载
    积分:1
  • 对于dos下asm编程的初学者很有帮助,只需用到两个应用程序。...
    对于dos下asm编程的初学者很有帮助,只需用到两个应用程序。-For asm programming under dos helpful for beginners, simply use two applications.
    2022-01-24 10:13:52下载
    积分:1
  • Experiment to construct a grammar (should consider the transformation) of FIRST...
    构造实验一所给文法(应考虑改造)的FIRST集合和FOLLOW集合;构造LL(1)分析表;构造预测分析的总控程序;利用分析表、分析栈和总控程序对源程序进行自上而下的语法分输出整个语法分析过程中栈的变化过程及分析结果,如符合语法规则输出“正确”,否则输出“错误”。 -Experiment to construct a grammar (should consider the transformation) of FIRST and FOLLOW set of the collection construct LL (1) analysis table structural prediction analysis of the master control procedures the use of analytical tables, analyze the stack and the total source code control procedures carried out since the last sub output down syntax parsing process of the whole stack and analysis of the results of the change process, such as the grammatical rules out the " right" , otherwise output " error."
    2022-08-19 02:16:53下载
    积分: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
  • 696516资源总数
  • 106914会员总数
  • 0今日下载