diff --git a/include/Parsodus/lrtables/generator.h b/include/Parsodus/lrtables/generator.h index 5fb0cd4..576e03f 100644 --- a/include/Parsodus/lrtables/generator.h +++ b/include/Parsodus/lrtables/generator.h @@ -140,7 +140,7 @@ LRTable Generator::generate() { if (leftPrec.first > rightTokenIt->second.first) { // Keep the shift handled = true; - } else if (leftPrec.first > rightTokenIt->second.first) { + } else if (leftPrec.first < rightTokenIt->second.first) { // replace with a reduce table.act[curIdx][term] = {Action::REDUCE, rule_applied}; handled = true;