Back to the 2022 paper

Module 2 : Syntax Analysis (Parser)

202214m

Consider the following grammar:
S0S01S110S \rightarrow 0S0 | 1S1 | 10
(a) Find LR(0) collection of items for the above grammar.
(b) Construct SLR parsing table.
(c) Trace whether the string "01100" is accepted or not.

Similar questions