edited by
388 views

1 Answer

Best answer
2 votes
2 votes

Its a CFG because its of type V --> (V+T)where V is variable and T is terminal.

this grammer is ambiguous since there exist two parse tree for a string.

id - id * id

 Only (ii) and (iii) are true.

selected by

Related questions

2 votes
2 votes
2 answers
1
Shivam Bhardwaj asked Aug 10, 2017
849 views
Ques. S Aa/bAc/dc A dWhich of them is correct. Please provide detailed information.a) LALR(1) but not SLR(1)b) Both SLR(1) and LALR(1)c) Grammar is Ambiguo...