Syntax Error Handling-1
Syntax Error Handling-1
HANDLING
Presented By:
D.Gokul Raja(61072111114)
V.Gokul(61072111113)
Syntax error handling
• Panic mode
• Phrase level recovery
• Error production
• Global correction
• 1. Panic Mode
• In case of an error like:
• a=b + c // no semi-colon
• d=e + f ; d=e + f ;
• The compiler will discard all subsequent tokens till a semi-colon is
encountered.
• This is a crude method but often turns out to be the best method.