Description: 这是我做的词法分析器的 需求分析和系统设计 请大家指教!-I developed the requirement analysis and system design of grammar analyzer. Advices are welcome. Platform: |
Size: 39208 |
Author:徐文虎 |
Hits:
Description: 执行程序,输入文法,与需要分析的语句执行ll(1)分析,很方便-implementation procedures, the importation of grammar, and the need to analyze the implementation of the phrase ll (1) analysis, is a convenient Platform: |
Size: 11505 |
Author:Wandy_1234 |
Hits:
Description: 编译原理LL(1)文法分析器
录入合法的LL(1)文法,将输出LL(1)预测分析表,并可以对输入的句子进行语法分析输出相应语法树。
程序中部分算法还很不简洁,有待改进,欢迎朋友与我多多交流。
lifanxi@263.net
2002年5月-compiler theory LL (1) grammar analyzer input legitimate LL (1) grammar, will output LL (1) Table Forecast and Analysis, and can import sentence for syntax analysis syntax tree corresponding output. Some procedures also very simple algorithm, there is room for improvement, I welcome a lot of friends and exchange. Lifanxi@263.net May 2002 Platform: |
Size: 30088 |
Author:111 |
Hits:
Description: 编译原理LR(0)文法分析器
录入合法的LR(0)文法,将输出LR(0)分析表,并可以对输入的句子进行语法分析输出相应语法树。
程序中部分算法还很不简洁,有待改进,欢迎朋友与我多多交流。
-compiler theory LR (0) grammar analyzer input legitimate LR (0) grammar, will output LR (0) analysis table, and may import for the sentence syntax analysis syntax tree corresponding output. Some procedures also very simple algorithm, there is room for improvement, I welcome a lot of friends and exchange. Platform: |
Size: 39384 |
Author:朱俊 |
Hits:
Description: lr(0)分析器编译原理LR(0)文法分析器 录入合法的LR(0)文法,将输出LR(0)分析表,并可以对输入的句子进行语法分析输出相应语法树。 程序中部分算法还很不简洁,有待改进,欢迎朋友与我多多交流。 - Translation principle LR (0) grammar analyzer input legitimate LR (0) the grammar, will output LR (0) the analytical table, and will be allowed to carry on the grammar analysis output corresponding grammar tree to the input sentence. In the procedure the partial algorithms very are not succinct, await improvements, welcome the
-lr (0) analyzers compiler theory LR (0) grammar analyzer input legitimate LR (0) grammar. LR will output (0) analytical tables, and can import the sentence syntax analysis of the output corresponding syntax tree. Some procedures also very simple algorithm, the room for improvement, I welcome friends and conduct more exchanges. - Translation principle LR (0) analyze grammar r input legitimate LR (0) the grammar, LR will output (0) the analytical table, and will be allowed to carry on the grammar analy sis output corresponding to the grammar tree in put sentence. In the procedure the partial algo rithms are not very succinct. await improvements, welcome the Platform: |
Size: 62699 |
Author:www |
Hits:
Description: 编译原理LR(0)文法分析器 录入合法的LR(0)文法,将输出LR(0)分析表,并可以对输入的句子进行语法分析输出相应语法树。 程序中部分算法还很不简洁,有待改进,欢迎朋友与我多多交流。- Translation principle LR (0) grammar analyzer input legitimate
LR (0) the grammar, will output LR (0) the analytical table, and will
be allowed to carry on the grammar analysis output corresponding
grammar tree to the input sentence. In the procedure the partial
algorithms very are not succinct, await improvements, welcome the
friend and my many exchanges. Platform: |
Size: 37315 |
Author:刘远兴 |
Hits:
Description: 编译原理LL(1)文法分析器 录入合法的LL(1)文法,将输出LL(1)预测分析表,并可以对输入的句子进行语法分析输出相应语法树。- Translation principle LL (1) grammar analyzer input legitimate
LL (1) the grammar, will output LL (1) to forecast the analytical
table, and will be allowed to carry on the grammar analysis output
corresponding grammar tree to the input sentence. Platform: |
Size: 33735 |
Author:刘远兴 |
Hits:
Description: 词法分析和语法分析的程序,带实验报告- The lexical analysis and the grammar analysis procedure, brings
the test report Platform: |
Size: 50176 |
Author:王聃 |
Hits:
Description: 由于时间紧迫及事先准备不足,编译器最后定型时暴露出不少问题及不足之处,主要有以下一些方面: 不支持数组数据类型,这是文法分析器设计时的一个疏漏,由于时间关系,最后只得把扫描器中已做好的相关的数组部分删去。 对于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 8086/8088 directive to the knowledge of the system itself, this compilation can do to code meaning entirely faithful to the source, but not running. For the support of local variables, in the time constraints, all local variables were all handled in the static variable. So recursive function will not get the right results. Platform: |
Size: 260096 |
Author:周杰 |
Hits:
Description: 用算符优先文法制作的算符优先分析器,实现了FIRSTVT跟LASTVT的输出跟优先表的输出以及栈的输出以及到文件的输出。-priority grammar operator with the operator priority to the production analyzer, achieved with LASTVT FIRSTVT output with the output of the priority list and stack output and the output of the document. Platform: |
Size: 10240 |
Author:姜鹏 |
Hits: