Compiler Design and Construction - Old Questions

2. Differentiate between LR(0) and LR(1) algorithm. Construct LR(1) parse table of the following grammar.(3+7)

                    S->AA

                    A->aA | b

10 marks | Asked in 2078