Site icon i2tutorials

Compiler Design-Syntactic Phase Errors

Syntactic Phase Errors

 

Syntactic Errors are detected during the syntax Analysis Phase, The general syntax errors are:

For Example: If the “else” keyword is written as “elsee”

 

Error Recovery

There are four types of Error Recovery methods that are available:

  1. Panic Mode Recovery
  2. Statement Mode Recovery
  3. Error Production
  4. Global Correction

 

Panic Mode Recovery

 

Reference Link

Syntactic Phase Errors

Exit mobile version