文件名称:LRAnalysis
介绍说明--下载内容均来自于网络,请自行研究使用
(1)E -> E+T (2)E -> T
(3)T -> T*E (4)T -> F
(5)F -> (E) (6)F -> i
模拟以上文法的LR分析过程。对用户任意输入的字符串,能够输出LR分析器的工作过程。
根据以上文法,生成LR分析表,使用VC语言实现LR分析器。Main函数接受用户键盘输入的字符串,通过调用LR函数输出LR分析的过程。-(1) E-> E+ T (2) E-> T (3) T-> T* E (4) T-> F (5) F-> (E) (6) F-> i simulation of the above LR grammar analysis. Any input string the user can work out the process of LR parser. According to the above grammar, generate LR analysis table, use the VC language LR parser. Main function accepts user keyboard input string, called LR function through the analysis of the output process of LR.
(3)T -> T*E (4)T -> F
(5)F -> (E) (6)F -> i
模拟以上文法的LR分析过程。对用户任意输入的字符串,能够输出LR分析器的工作过程。
根据以上文法,生成LR分析表,使用VC语言实现LR分析器。Main函数接受用户键盘输入的字符串,通过调用LR函数输出LR分析的过程。-(1) E-> E+ T (2) E-> T (3) T-> T* E (4) T-> F (5) F-> (E) (6) F-> i simulation of the above LR grammar analysis. Any input string the user can work out the process of LR parser. According to the above grammar, generate LR analysis table, use the VC language LR parser. Main function accepts user keyboard input string, called LR function through the analysis of the output process of LR.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
LRAnalysis.doc
LRAnalysis.cpp
LRAnalysis.cpp