Bison report shift reduce conflict but how can I locate them?
-
03-07-2021 - |
Вопрос
I'm working on a bison parser with most of the features of an OOP language and now bison complains that there are some shift/reduce conflicts. I got:
conflicts: 21 shift/reduce
The problem is that it does not tell me where they are. Does anyone know how to locate there conflicts?
Thanks in advance.
Решение
If you read the manual page about command line options you will notice one called --report
and another called --report-file
. These two tells Bison to create a report file of the specified name, that among other things should include more information about conflicts.
Не связан с StackOverflow