1,252 views
0 votes
0 votes
Consider the following grammar which of the following is/are ambiguous?
(i) S → y | SxS
(ii) S → E | ExS and E → y
(iii) S → Sxy | y

1 Answer

1 votes
1 votes

@Shaik Masthan 

you are deriving one from LHS and one From RHS, this isn't valid to prove it ambiguous?

Related questions

2 votes
2 votes
2 answers
1
Shashank Chandekar asked Nov 3, 2016
4,257 views
Consider the following context-free grammarS → SS + | SS*| a for the string aa + a*. Is the grammar ambiguous ?
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
2 answers
3
1 votes
1 votes
2 answers
4