Back to the 2023 paper

Module 2 : Syntax Analysis (Parser)

20235m

When a grammar is called ambiguous? Is there any technique to remove ambiguity? Justify whether the following grammar is ambiguous or not?
S→aS/Sa/aS \rightarrow aS/Sa/a

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.