2 2 votes In Fig. $4.56$ is a grammar for certain statements, similar to that discussed in Question $4.4.12$. Again, $e$ and $s$ are terminals standing for conditional expressions and "other statements," respectively. Build an LR parsing table for this grammar, resolving conflicts in the usual way for the dangling-else problem. Implement error correction by filling in the blank entries in the parsing table with extra reduce-actions or suitable error-recovery routines. Show the behavior of your parser on the following inputs: if e then s ; if e then s end while e do begin s ; if e then s ; end Compiler Design ullman compiler-design grammar parsing lr-parser descriptive + – admin 835 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.