Panic-Mode (Hartmann) Error Recovery
51/57
S
A1
x
a wrong token
Textovι pole: …
…
X1
…
…
A3
X3
A2
X2
…
…
…
…
• Let Context(A1) =
Follow(A1) È  
Follow(A2) È
…  
Follow(An)
= An
repeat
• a := GetNextToken;
  {These tokens are skipped}
until a in Context(A1)
if a in Follow(Ai) then continue with parsing from the symbol Xi.