Back to the 2024 paper

Module 2 : Syntax Analysis (Parser)

20242m

Consider the following grammar:
E→E+T∣TE \rightarrow E + T | T
T→T∗F∣FT \rightarrow T * F | F
F→(E)∣idF \rightarrow (E) | id

Is the grammar ambiguous? Justify your answer with proper reasoning.

Similar questions

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.