Precedence fix
This commit is contained in:
parent
c9da57dec2
commit
fb4e394b36
|
@ -140,7 +140,7 @@ LRTable Generator<Itemset>::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;
|
||||
|
|
Loading…
Reference in New Issue