We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b307aa commit 72b88cbCopy full SHA for 72b88cb
InhaCC/InhaCC/cc/ParserGenerator.cs
@@ -1276,6 +1276,8 @@ public ShiftReduceParser CreateShiftReduceParserInstance()
1276
{
1277
var index = elem.Item1;
1278
if (index == -1) index = production_rules.Count;
1279
+ if (jump_table[reduce.Key][index] != 0)
1280
+ throw new Exception($"Error! Shift-Reduce Conflict is not solved! Please use LALR or LR(1) parser!\r\nJump-Table: {reduce.Key} {index}");
1281
if (elem.Item2 == 0)
1282
jump_table[reduce.Key][index] = 3;
1283
else
0 commit comments