1,759 views
0 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

Position:
Show:

Related questions

2 2 votes
2 2 answers
4.7k
4.7k views
Shashank Chandekar asked Nov 3, 2016
4,728 views
Consider the following context-free grammarS → SS + | SS*| a for the string aa + a*. Is the grammar ambiguous ?
3 3 votes
2 answers 2 answers
5.0k
5.0k views
vivekpinto07 asked Jun 24, 2016
4,960 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 0 votes
2 2 answers
624
624 views
2 2 votes
2 2 answers
3.0k
3.0k views
go_editor asked Nov 20, 2020
3,003 views
Which of the following grammars is(are) ambiguous?$s \rightarrow ss \mid asb \mid bsa \mid \lambda$$s \rightarrow asbs \mid bsas \mid \lambda$$s \rightarrow aAB \\ A \rig...