softdevteam / lrpar

Rust LR parser
Other
1 stars 0 forks source link

Fix "check for N shifts at the end of repairs" #46

Closed ltratt closed 6 years ago

ltratt commented 6 years ago

The MF recoverer had an unfortunate off-by-one error (> instead of >=), which the first commit fixes. The second commit makes the check involved faster. The final commit makes all recoverers use the same threshold for determining if there are enough shifts to constitute success. The commit messages have a little more detail, although none is too fussy, since this is a relatively simple PR.