Answer the following question about Compilers and Grammar an
Answer the following question about Compilers and Grammar, and show all of your work.
Justify your answer.
Please show all of your work! I will rate quality answers.
Solution
Answer:
S ---> aSA | epsilon
A ---> abS| c
We have to check the First/First Conflict and First/Flow Conflict
In the grammer above , there is no first/first conflict as we cannot see any single productions in the grammar.
But there is First/Flow conflict
As if we see a , we cannot decide what production to choose , whether we choose S--->aSA |epsilon or A ---> abS |c , but since we have epsilon production , it cannot have first/follow conflict , thus the grammar is LL(1).
