119 views

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
in Others
edited | 119 views
+1
A grammar which have left recursive and right recursive on a specific Non-Terminal is Ambiguous grammar.

So, option C is preferrable.

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
by Junior (873 points)

+1 vote