E | → | TE' |
E' | → | +TE' | ε' |
T | → | FT' |
T' | → | *FT' | ε' |
F | → | (E) | id |
E =>lm TE' id[+id*id] (E → TE')
=>lm FT'E' id[+id*id] (T → FT')
=>lm idT'E' id[+id*id] (F → id)
=>lm idE' id+[id*id] (T' → ε) (Note we could have made a poor choice here)
=>lm id+TE' id+[id*id] (E' → +TE') (Note, we could have made a poor choice here)
=>lm id+FT'E' id+id[*id] (T → FT')
=>lm id+idT'E' id+id[*id] (F → id)
=>lm id+id*FT'E' id+id*[id] (T' → *FT') (Note, we could have made a poor choice here)
=>lm id+id*idT'E' id+id*id[] (F → id)
=>lm id+id*idE' id+id*id[] (T' → ε) (Note, we could have made a poor choice here)
=>lm id+id*id id+id*id[] (E' → ε) (Note, we could have made a poor choice here)