Back to the 2025 paper

Module 2 : Syntax Analysis (Parser)

20257m

Discuss ambiguity in grammar. Show that the given grammar is ambiguous:

S→ABAS \rightarrow ABA
A→aA∣εA \rightarrow aA \mid \varepsilon
B→bB∣εB \rightarrow bB \mid \varepsilon

Similar questions

Student FinanceWeb Platform

Pocketly — Personal Finance for Students

Keep your hostel and college expenses under control. Track accounts, log spending in seconds, and stay within your monthly budget.