Back to the 2022 paper

Module 2 : Syntax Analysis (Parser)

202214m

Construct LALR(1) parsing table for the following grammar. Also prove that this is not SLR(1).
S→Aa∣bAc∣dc∣bdaS \rightarrow Aa | bAc | dc | bda
A→dA \rightarrow d

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.