closed by
969 views
0 votes
0 votes
closed as a duplicate of: GATE CSE 1990 | Question: 16a

$$\begin{align*} \text {stmt} &\rightarrow \text{if expr then stmt else stmt} \\ & \;\; \;\; | \text{ if expr then stmt} \\ & \;\; \;\; | \text{ other} \end{align*}$$

Which of the following statement/s is/are true ??

  • A. The grammar is ambiguous and the ambiguity cannot be resolved.
  • B. The grammar is unambiguous
  • C. The grammar is ambiguous and the ambiguity can be resolved
  • D. None of these
closed by

Related questions

3 votes
3 votes
2 answers
2
vivekpinto07 asked Jun 24, 2016
3,973 views
An ambiguous grammar is one that producesmore than one left most derivation for the same sentence.more than one right most derivation for the same sentence.more than one ...
0 votes
0 votes
0 answers
3