详细说明:LL(1)分析法
1、LL(1)分析法的功能
LL(1)分析法的功能是利用LL(1)控制程序根据显示栈栈顶内容、向前看符号以及LL(1)分析表,对输入符号串自上而下的分析过程。
2、LL(1)分析法的前提
改造文法:消除二义性、消除左递归、提取左因子,判断是否为LL(1)文法,
3、LL(1)分析法实验设计思想及算法-LL (1) an analysis, LL (1) Analysis of the functional LL (1) Analysis of the functional use of LL (1) under control procedures revealed Stack Stack Top content, and forward-looking symbols LL (1) Analysis Table, the importation of symbols string of top-down process. 2, LL (1) Analysis law of the transformation of grammar : Elimination of two justice, the elimination of left recursive, extracting the left factor, To determine whether the LL (1) grammar, 3, LL (1) analysis and experimental design algorithm
[LL1ForXp.rar] - LL(1)文法,消除隐藏左递归,提取共因子,然后求First,Follow,Select集,以及预测分析表,最后进行预测分析
[消除左递归1.rar] - 对给定的文法消除左递归。
[ll1.rar] - 输入已经消除左递归的以及提取公共左因子的LL(1)文法,再输入相应的表达式,若分析成功,则在递归输出过程中输出"acc",若不成功,则有相应的报错以及位置指名。
[LL1.tar.gz] - LL1通用语法分析器,有消除左递归,FIRST集合、FOLLOW集合、分析表生成等功能
[消除左递归1.rar] - 对给定的文法消除左递归。
[ll1.rar] - 输入已经消除左递归的以及提取公共左因子的LL(1)文法,再输入相应的表达式,若分析成功,则在递归输出过程中输出"acc",若不成功,则有相应的报错以及位置指名。
[LL1.tar.gz] - LL1通用语法分析器,有消除左递归,FIRST集合、FOLLOW集合、分析表生成等功能