How can I tell Bison, I also expect a reduction in contraction reductions?

My C # toy grammar now has its first contraction-contraction conflicts! I am so proud of me.

Everything seems to be in order, however (I disconnected for the GLR analyzer about this). The problem is that although I know that the directive %expectcan plug Bison into shift / decrease conflicts, I cannot find the equivalent for decrease / decrease conflicts. So what should I use to silence him about my 3 shifts / contractions, and my 2 shrink / shrink?

+3
source share
1 answer

From the GNU Bison documentation found here

LALR (1) / . / . GLR, ; GLR. , / GLR , :

 %expect-rr n
+4

Source: https://habr.com/ru/post/1728964/


All Articles