retagged by
1,895 views
0 votes
0 votes
If the grammar be left recursive then is it always be ambiguous?
retagged by

1 Answer

0 votes
0 votes
No, Not necessary if a grammar is left recursive then it may or may not be ambiguous.

Let's take one small example

A-> Aa/ε

this grammar is left recursive but not ambiguous.

Related questions

0 votes
0 votes
1 answer
1
A_i_$_h asked Dec 23, 2017
652 views
$E→E−T ∣ T$$T→T/F ∣ F$$F→(E) ∣ id$(E is the start symbol)This grammar is unambiguous but shouldn't it be ambiguous because it has left recursion?
1 votes
1 votes
1 answer
2
1 votes
1 votes
1 answer
4
learner_geek asked Aug 3, 2017
294 views
A Grammar which is only left recursive or right recursive can be ambiguous grammar???Or it should have both left recursive and right recursive to be ambiguous???