> On 2 Feb 2021, at 07:50, Christoph Grüninger wrote:
>
> Dear Bisons,
>
> I have another issue within the CMake parser code. When using the
> attached cmDependsJavaParser.y with Bison 3.7.5, i get the following
> warning: 4 shift/reduce conflicts [-Wconflicts-sr]. When adding
> -Wcounterexamp
I don't know how familiar you are with this, so apologies if I'm stating
the obvious.
General observations:
1 - start by writing a skeleton with no actions; this makes it easier to
find conflicts. When you're done, add the actions
2 - this is *way*, *way* too verbose. You don't need tokens for '
I reran the full counterexamples report with the latest bison:
bison -Wcounterexamples --report=counterexamples
--report-file=bisonreport.txt cmDependsJavaParser.y
the counterexamples now show rule numbers too
cmDependsJavaParser.y: warning: 4 shift/reduce conflicts [-Wconflicts-sr]
cmDepends