Professional Documents
Culture Documents
Phases of Complier
Phases of Complier
1.Spelling errors
2.Unmatched string
3.Apperance of illigal characters
4.Exceeding length of identifier
Error Recovery mechanisms:
1.Delete a single character from the remaining input
2.Insert a missing character into the remaining input
3.Replace one character by another character
4.Transpose to adjacent characters
5.Delete successive characters from the remaining input until lexical
analyzer recognizes a well formed token.This apporch is called as panic
mode error recovery.