I have this grammar:
E -> E + T
E -> T
T -> T * F
T -> F
F -> ( E )
F -> id
And this is the state diagram for it:
I tried to construct a parse table and I am getting shift/reduce conflict. More specifically in state 2 I can shift *
. Also, FOLLOW(LHS) = FOLLOW(T) contains *
so I can also reduce using rule 2. Hence shift/reduce conflict.
Am I right?