edited by
944 views
0 votes
0 votes

The grammar $S \rightarrow (S) \mid SS \mid \epsilon$ is not suitable for predictive parsing because the grammar is

  1. Right recursive
  2. Left recursive
  3. Ambiguous
  4. An operator grammar
edited by

1 Answer

0 votes
0 votes
This grammar is Left as well as Right recursive, it is Ambiguous Grammar for sure.
Also, if you will try for some strings, you will be getting more than 1 ways for that, hence Ambiguous

Related questions

1 votes
1 votes
0 answers
3
0 votes
0 votes
2 answers
4
Arjun asked Jan 2, 2019
4,323 views
Consider the graph shown below:Use Kruskal’s algorithm to find the minimum spanning tree of the graph. The weight of this minimum spanning tree is$17$$14$$16$$13$