CSC376 · 2078 · 10 marks
Differentiate between LR(0) and LR(1) algorithm. Construct LR(1) parse table of the following grammar.S→AAS \rightarrow AAS→AAA→aA∣bA \rightarrow aA | bA→aA∣b
Differentiate between LR(0) and LR(1) algorithm. Construct LR(1) parse table of the following grammar.S→AAS \rightarrow AAS→AAA→aA∣bA \rightarrow aA | bA→aA∣b[10]
Compiler Design and ConstructionChapter 2: Lexical, Syntax and Semantic AnalysisLR parsingNumerical: LR(1) parsing table construction