Вопрос

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top