Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Parsing 这是LL(1)语法吗_Parsing_Grammar_Ll - Fatal编程技术网

Parsing 这是LL(1)语法吗

Parsing 这是LL(1)语法吗,parsing,grammar,ll,Parsing,Grammar,Ll,这对我来说真的很重要,所以请帮帮我。 这是LL1语法吗 S -> LAB L -> d | ε A -> dA | Ba B -> Bb | ε 有人能帮我处理LL1解析表吗? 我说的对吗 first(S) = {a,b,d} first(L) = {d} first(A) = {b,d} first(B) = {b} follow(S) = {$} follow(L) = {a,b,d} follow(A) = {b,$} follow(B) = {$} 我在你的

这对我来说真的很重要,所以请帮帮我。 这是LL1语法吗

S -> LAB
L -> d | ε
A -> dA | Ba
B -> Bb | ε
有人能帮我处理LL1解析表吗? 我说的对吗

first(S) = {a,b,d}
first(L) = {d}
first(A) = {b,d}
first(B) = {b}

follow(S) = {$}
follow(L) = {a,b,d}
follow(A) = {b,$}
follow(B) = {$}
我在你的语法上用了。JFLAP不认为您的语法是LL1,但可以尝试为它构建一个解析表


您可以尝试使用JFLAP中的语法,使其符合LL1。

虽然我已经回答了这个问题,但它可能更适合于