我在 yacc 中使用了 -v 选项来生成一个 y.output 文件。在文件的顶部它说
状态 98 冲突:1 班次/减少
文件的下方是以下内容:
state 98
30 selection_stmt: IF '(' expression ')' statement .
31 | IF '(' expression ')' statement . ELSE statement
ELSE shift, and go to state 101
ELSE [reduce using rule 30 (selection_stmt)]
$default reduce using rule 30 (selection_stmt)
冲突是什么,如何解决?