搜索资源列表
Parser
- 本程序要求用户在控制台里输入非终极符,终结符与产生式,然后对用户输入的文法进行分析,得出first集 与follow 集,并打印出预测分析表用户决定是否继续进行句型分析,如继续则给出符号分析栈的实现,从而判断刚输入的句子是否为符合该文法的句子。 该程序遵循LL(1) 文法FIRST(A)的构造:是A的所有可能推导的开头终结符或可能的ε FOLLOW(A)是所有句型中出现在紧接A之后的非终结符或“#” 预测分析程序 构造LL(1)分析表 ⅰ,构造文法中所有元素的FIRST和FOLL
ll1
- 计算first follow集,预测分析表
ll1
- LL1.语法分析 源码,功能强大,输出预测分析表
yucefenxi
- 是一款很简单的预测分析表的构造,横容易看懂,如果不懂建议再去看看C++,里面有几处故意缺少点东西,是希望你们去钻研的
BYYN
- 用一门面向对象语言建立一个针对LL(1)文法分析构造演示器,输入定义好的文法,进行分析后在内存中建立其存储结构,判断其能用LL(1)文法分析后,建立其分析过程。 为此我们将本任务分解为以下内容: (1)文法的建立; (2)上下文无关文法的判定; (3)消除文法中一切左递归的算法; (4)文法二义性的判定; (5)LL(1)文法的判定; (6)消除直接左递归; (7)消除间接左递归; (8)直接左公因子的改造; (9)间接左公因子的改造; (10
LL1ForWin
- 编译原理课程设计,LL(1)方法,用FIRST()和FOLLOW(),SELECT(),以及预测分析表
LL(1)
- LL(1)语法分析 预测分析表存放为产生式的编号,+1用于存放结束符,多+1用于存放#(-1)*
LL1
- LL1文法的实现,先输入语法规则,之后求出FIRST和FOLLOW,最后给出预测分析表。
ll1forwin
- 这是编译原理的一个 LL(1)文法预测分析表构造程序-This is the principle of a compiler LL (1) grammar Forecast and Analysis Table tectonic process
实验二:ll1语法判断
- 实验二:LL1语法判断 自定义一个文法集,输入文法产生式,计算文法的FIRST,FOLLOW和SELECT集合, 利用SELECT集合构造预测分析表,接着用预测分析程序,栈 和预测分析表对输入串进行分析,给出分析过程-Lab two: The LL1 grammar judgment from defines a grammar collection, the input grammar production pattern, computation grammar FIRST, FOL
121212
- 汇编语言的作业要求根据G 2文法的预测分析表来判断一个语句是否符合G 2文法,并且显示出处理过程及调用预测分析表的情况.-assembly language under the operational requirements of the G 2 grammar Table Forecast and Analysis to determine whether a statement G 2 grammar, and shows the process and called prediction
LL1ForWin完美版
- 编译原理LL(1)文法分析器 录入合法的LL(1)文法,将输出LL(1)预测分析表,并可以对输入的句子进行语法分析输出相应语法树。-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 corresp
语法分析器:递归下降子程序的编写
- 语法分析器:递归下降子程序的编写 通过本实验,了解递归下降预测分析的原理和过程以及可能存在的回溯问题,探讨解决方法,为预测分析表方法的学习奠定基础。分析递归下降子程序的优缺点。-Parser: recursive descent routines written by this study to understand the principle of recursive descent and the process of predictive analysis, and possibl
rq
- 根据给定文法,先求出first集合、follow集合和select集合,构造预测分析表(要求预测分析表输出到屏幕或者输出到文件);-According to the given grammar, first find the first set, follow the collection and select a collection, structure prediction analysis table (which requires prediction of the table to
lll
- 实现了LL(1)文法分析,包括构造First、Follow集、预测分析表,并可检查输入串是否被接受。-The implementation of LL(1) analysis, including constructing the First, Follow set, Predictive Parsing Table. It can also test a string whether it is accepeted.
LL(1)Analysis
- 大学时的编译大作业,是对LL(1)语法的分析过程,会产生first集,follow集和预测分析表!-University at the time of compiling large operations, is a LL (1) syntax analysis process, will have first set, follow sets and predictive analysis table!
yucefenxifa
- 目的是在栈、表以及预测分析法原理的基础上,实现预测分析表的建立和控制程序。-Aim is to stack, table, as well as the principle of prediction analysis on the basis of the analysis table to achieve the establishment of forecasting and control procedures.
llApp(FR)
- ll(1)文法,First集,Follow集。预测分析表-ll (1) grammar, First Set, Follow sets. Forecast Analysis
LL1_grammar_analysis_code
- 功能基本实现,录入合法的LL1文法,将输出LL1预测分析表-Function of the basic implementation, input the valid LL1 grammar, you ll get the output-LL1 prediction analysis table
yufa
- 1. 分析文法是否符合要求,适当消除左递归,提取左因子。 2. 分析新构造的产生式集合,构造预测分析表。实现LL(1)分析 3. 编写程序根据分析表输出结果---产生式的序列 -1