Term 2 - Set 4 - L4: Compiler Design
2025, April 7
S → aSa | bSb | c
a) Prove whether this grammar is ambiguous or unambiguous.S → Aa | b
A → Sd | B
B → Sa | ε
a) Is this grammar left-recursive? If yes, identify both direct and indirect cases.G
that satisfies all the following simultaneously:
{a, b}
with odd length.Tasks:
G
is unambiguous.Prove all three properties mathematically using: