文件名称:LL(1)suanfa
介绍说明--下载内容均来自于网络,请自行研究使用
LL(1)文法判定算法,LL(1)文法使用的是确定的自顶向下的分析技术。LL(1)的含义是:第一个L表明自顶向下分析是从左向右扫描输入串,第2个L表明分析过程中将使用最左推导,1表明只需向右看一个符号便可决定如何推导,即选择哪个产生式(规则)进行推导。
LL(1)文法的判别需要依次计算FIRST集、FOLLOW集和SELLECT集,然后判断是否为LL(1)文法,最后再进行句子分析。
-LL (1) grammar algorithm to determine, LL (1) grammar is used to determine the top-down analysis techniques. LL (1) the meaning is: the first L showed that top-down analysis is scanned from left to right input strings, the first two L analysis will show that the use of the most left-derived, 1 shows that only a symbol to the right to see it can decide how derived, namely, to choose which production (rule) for derivation. LL (1) determine the needs of grammar followed by calculating the FIRST set, FOLLOW sets and SELLECT set, and then determine whether to LL (1) grammar, sentence analysis of the final again.
LL(1)文法的判别需要依次计算FIRST集、FOLLOW集和SELLECT集,然后判断是否为LL(1)文法,最后再进行句子分析。
-LL (1) grammar algorithm to determine, LL (1) grammar is used to determine the top-down analysis techniques. LL (1) the meaning is: the first L showed that top-down analysis is scanned from left to right input strings, the first two L analysis will show that the use of the most left-derived, 1 shows that only a symbol to the right to see it can decide how derived, namely, to choose which production (rule) for derivation. LL (1) determine the needs of grammar followed by calculating the FIRST set, FOLLOW sets and SELLECT set, and then determine whether to LL (1) grammar, sentence analysis of the final again.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
课程设计打印.doc