When I try to use yacc on the following file I get the error conflicts: 1 shift/reduce How can I find and fix the conflict?
/* C-Minus BNF Grammar */ %token
maybe you should try a yacc -v , it generates an output of the details.
yacc -v
I tested here, and your grammar description fails in the classic "dangling else" problem.
Take a look at this Wikipedia article.