Back to the 2025 paper

Module 2 : Syntax Analysis (Parser)

20257m

Prove that the following grammar is ambiguous on string 'aab':

S→aS∣aSbS∣εS \rightarrow aS \mid aSbS \mid \varepsilon

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.