2081.1 2

Compiler Design and Construction2081.110 marksNumerical: LR(1) parsing tableLR parsing

Create the LR(1) parsing table for following grammar.S→AAS \rightarrow AAS→AAA→0AA \rightarrow 0AA→0AA→εA \rightarrow \varepsilonA→ε

Create the LR(1) parsing table for following grammar.S→AAS \rightarrow AAS→AAA→0AA \rightarrow 0AA→0AA→εA \rightarrow \varepsilonA→ε[10]

Grammar: $$S \to AA$$ $$A \to 0A$$ $$A \to \varepsilon$$ - Terminals: $${0, $}$$ - Non-terminals: ${S, A}$ - Marks: 10 $$ \begin{aligned} (0)\ & S' \to S\ (1)\ & S \to AA\ (2)\ & A \to 0A\ (3)\ & A \to \varepsilon \end{aligned} $$ Closure rule: For $[B \to \alpha \bullet C\beta, a]

Up nextExplain the optimization techniques for code optimization. Convert the following program t