Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - generate first and follow grammar
Search - generate first and follow grammar - List
实现编译原理中 通过已知的文法来产生First集和FOLLOW集 以及SLR分析表-Compilation Principle realize through grammar known to generate First Set and FOLLOW sets, as well as SLR analysis table
Date : 2025-12-27 Size : 11kb User : 陈波

DL : 0
LL1通用语法分析器,有消除左递归,FIRST集合、FOLLOW集合、分析表生成等功能-Universal grammar LL1 parser, has the elimination of left recursion, FIRST collection, FOLLOW collection, analysis and other functions to generate Table
Date : 2025-12-27 Size : 632kb User : Wang Xinxi

1、任意输入一个文法G; 2、处理文法中可能存在的左递归和公共左因子问题; 3、对文法中的每个非终结符自动生成并打印输出: ① FIRST集; ② FOLLOW集; 4、判断处理后的文法是否为LL(1)文法,如果是,自动生成并打印输出其预测分析表; 5、模拟分析过程。 如输入一个句子,如果该句子合法则输出与句子对应的语法树;能够输出分析过程中每一步符号栈的变化情况。如果该句子非法则进行相应的报错处理。 -An arbitrary input to a grammar G 2, handle left recursive grammar and public left factor 3, for each nonterminal in the grammar automatically generate and print the output: ① the FIRST set ② FOLLOW sets 4, the judge after the grammar is LL (1) grammar, if yes, to automatically generate and print the output of the prediction table 5, the simulation analysis. Enter a sentence if the sentence is legitimate output corresponding with the sentence syntax tree able to output analysis process every step of the symbols in the stack changes. If the sentence is illegal is the appropriate error handling.
Date : 2025-12-27 Size : 1.42mb User : chenlu
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.