登录
首页 » Compiler program » (1)构造文法G的LR(0)项目 (2)构造文法G的LR(0)项目集规范族及识别活前缀的DFA (3)证明文法G不是LR(0)文法而是SLR(1)文法,...

(1)构造文法G的LR(0)项目 (2)构造文法G的LR(0)项目集规范族及识别活前缀的DFA (3)证明文法G不是LR(0)文法而是SLR(1)文法,...

于 2022-05-16 发布 文件大小:44.31 kB
0 157
下载积分: 2 下载次数: 1

代码说明:

(1)构造文法G的LR(0)项目 (2)构造文法G的LR(0)项目集规范族及识别活前缀的DFA (3)证明文法G不是LR(0)文法而是SLR(1)文法,并构造SLR(1)分析表 (4)设计LR语法分析程序,且能输出分析过程 (5)列举两个例子测试语法分析程序(识别失败一例,识别成功一例,后者推导步骤不得少于10步) -(1) construct grammar G of the LR (0) item (2) construct grammar G of the LR (0) item sets standards and identification of family living prefix DFA (3) prove that the grammar G is not LR (0) grammar, but the SLR (1 ) grammar, and constructs SLR (1) analysis table (4) design LR parser, and can output analysis process (5) cited two examples of parsing test procedures (identification fails an example, identify the success of a case, the latter shall not be derived step Less than 10 steps)

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

发表评论

0 个回复

  • 一个简单的C词法分析器 能识别数字,标志符(关键字,变量)和一些运算符....
    一个简单的C词法分析器 能识别数字,标志符(关键字,变量)和一些运算符.-a simple C lexical analyzer can identify the number, identifier (keyword, variable), and some Operators.
    2023-04-18 23:00:03下载
    积分:1
  • 原理实验1源文件,编译输入输出,2个词法…
    编译原理实验一源文件的输入输出、 二词法分析-Principle Experiment 1 source file to compile the input and output, two lexical analysis
    2022-06-03 12:40:32下载
    积分:1
  • 编译词法分析程序
    编译词法分析程序- Translation lexical analyaer
    2022-03-15 18:19:48下载
    积分:1
  • 关于语法分析的vc好
    关于语法分析的vc好- Is good east about grammar analysis vc east
    2022-02-25 17:52:37下载
    积分:1
  • 矢量图编辑器,其中的一个源代码,运行环境win32
    矢量图编辑器,其中的一个源代码,运行环境win32-Vector Graphics Editor, in which a source code, run the win32 environment
    2022-03-01 14:45:53下载
    积分:1
  • 一个小语言的词法分析程序
    一个小语言的词法分析程序- A small language lexical analyaer
    2022-01-20 22:52:25下载
    积分:1
  • 编译器,解释器构造,词法、语法、语义分析
    编译器,解释器构造,词法、语法、语义分析-interpreter
    2022-01-26 06:23:52下载
    积分:1
  • c语言标准库函数速查手册电子版
    c语言标准库函数速查手册电子版-c language standard storehouse function speed-searches the handbook electron version
    2022-08-20 13:42:45下载
    积分: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
  • Symbol table program using linked list..contains yacc & lex files
    Symbol table program using linked list..contains yacc & lex files
    2022-06-18 15:02:19下载
    积分:1
  • 696516资源总数
  • 106668会员总数
  • 21今日下载