606 views
0 votes
0 votes

The following grammar is proposed to remove the "danglingelse ambiguity" discussed  in Section $4.3.2$:

  • $stmt\rightarrow if\: expr\: then\: stmt\mid matchedstmt$
  • $matchedstmt \rightarrow if \:expr \:then \:matchedstmt\: else\: stmt\mid other$

Show that this grammar is still ambiguous. 

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1