2014-04-10 35 views

回答

0

這正是左分解通常所指的。

例子:

之前

G = "IF" cond "THEN" statements 
    | "IF" cond "THEN" statements "ELSE" statements 
... 

G = "IF" condition "THEN" statements G' 
G' = "ELSE" statements 
    | Εpsilon 
... 
0

在其他懸空的情況下,不確定性不是由左保消除。嵌套if語句仍然會有兩個分析樹。