

Semantical Error: Incompatible assignment for the values assigned.Syntactical Error: When their semicolon or any kind of unbalanced parenthesis is there.Lexical Error: when some of the identifier names are misspelled or not detected then this error occurs.There are four types of errors that can be encountered at various stages during the compilation are as follows. Firstly, the parser in the compiler must be able to detect and report to the user any error in the program while the compilation process, when an error is encountered, the parser present should be able to handle it and pass it to carry on parsing the rest of the input.For getting into deep we have to understand the types of errors and their recovery at various stages.Now if we talk about the error detection relation to error recovery then, when we get such an error from the compiler we have to write the error recovery for that to check the code that is also known as error correction.All the possible errors that are detected by the compilers are directly been reported to the user in form of error messages this detection of errors is called error detection.S - attributed and L - attributed SDTs in Syntax directed translation.
#Discuss panic mode error recovery technique with example generator
