CS 143 Lecture 610Error Recovery: Local and Global Correction•Idea: find a correct “nearby” program –Try token insertions and deletions–Exhaustivesearch•Disadvantages: –Hard to implement–Slows down parsing of correct programs–“Nearby” is not necessarily “the intended” program–Not all tools support it