The Gateway to Computer Science Excellence
+2 votes
202 views

in Compiler Design by
recategorized by | 202 views
+1
Grammar is ambiguous, as string 'aaa' can be produced in multiple ways.

2 Answers

0 votes
Opt (b)?
by 1 flag:
✌ Low quality (Hira Thakur)
0 votes
It is clr(1) .... option c
by
0
It's ambiguious grammar

String ' aaa'  produced more than one parse tree...

Option D is correct.
0

How did you get CLR(1)? I am getting an SR conflict. Shift move on 'a' and Reduce move on look ahead 'a' 

0
If a grammar is ambiguous then it will surely give conflicts in some state while constructing canonical collection of items (DFA).
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
52,315 questions
60,432 answers
201,778 comments
95,257 users