Back to the 2022 paper

Module 2 : Syntax Analysis (Parser)

20222m

Choose the correct answer of the following:
After removing left recursion from A→Aα/βA \rightarrow A\alpha / \beta , the resulting grammar will be
(i) A→βA′A \rightarrow \beta A'
(ii) A→αA′A \rightarrow \alpha A'
(iii) A→αβA′′A \rightarrow \alpha \beta A''
(iv) A→βαA′A \rightarrow \beta \alpha A'

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.