文件名称:compiler
介绍说明--下载内容均来自于网络,请自行研究使用
对任意给定的文法G 构造LR(1)
项目集规范族,其中要实现CLOSURE(I)、GO(I,X)、FIRST 集合等。在此基础上,
构造了LR(1)分析表。然后对输入的句子进行语法分析,给出接受或出错报告。
程序采用文件输入输出方式。其中包括两个输入文件:文法grammar.txt,以及
输入串input.txt;两个输出文件:项目集items.txt 和文法的LR(1)分析表
action_table.txt。由于语法分析的结果只给出接受或错误报告,比较简-For any given grammar G constructed LR (1) itemsets family norms, which in order to achieve CLOSURE (I), GO (I, X), FIRST collections, etc.. On this basis, the structure of the LR (1) analysis table. Then the input sentence for grammatical analysis, given the report to accept or wrong. Procedures for the use of file input and output modalities. Including two input file: grammar grammar.txt, as well as the input strings input.txt two output files: itemsets items.txt and grammar LR (1) analysis table action_table.txt. Since the syntax analysis is given only to accept or error reporting, comparison Jane
项目集规范族,其中要实现CLOSURE(I)、GO(I,X)、FIRST 集合等。在此基础上,
构造了LR(1)分析表。然后对输入的句子进行语法分析,给出接受或出错报告。
程序采用文件输入输出方式。其中包括两个输入文件:文法grammar.txt,以及
输入串input.txt;两个输出文件:项目集items.txt 和文法的LR(1)分析表
action_table.txt。由于语法分析的结果只给出接受或错误报告,比较简-For any given grammar G constructed LR (1) itemsets family norms, which in order to achieve CLOSURE (I), GO (I, X), FIRST collections, etc.. On this basis, the structure of the LR (1) analysis table. Then the input sentence for grammatical analysis, given the report to accept or wrong. Procedures for the use of file input and output modalities. Including two input file: grammar grammar.txt, as well as the input strings input.txt two output files: itemsets items.txt and grammar LR (1) analysis table action_table.txt. Since the syntax analysis is given only to accept or error reporting, comparison Jane
(系统自动生成,下载前可以参看下载内容)
下载文件列表
compiler.pdf