Transform the following grammar into LL(1). IS → Stmt $ 2 Stmt-if expr then Stmt else Stmt 3 if expr then Stmt I other 4 Figure 5.17: Grammar for if-then-else. Show transcribed image text Transform the following grammar into LL(1). IS → Stmt $ 2 Stmt-if expr then Stmt else Stmt 3 if expr then Stmt I other 4 Figure 5.17: Grammar for if-then-else.
Solution