![]() This mode prevents the parser from developing infinite loops and is considered as the easiest way for recovery of the errors. When an error is encountered anywhere in the statement, the rest of the statement is ignored by not processing the input from erroneous input to delimiter such as semi-colon. In order to deal with the errors in the code, the following are the four common error-recovery strategies: Panic mode What are the different error recovery strategies implemented in Compiler Design? ![]() Logical : code not reachable, infinite loop.Semantical : incompatible value assignment.Syntactical : missing semicolon or unbalanced parenthesis.Lexical : name of some identifier typed incorrectly.At various stages, the following kinds of errors occur: The errors may be encountered at various stages of the compilation process. ![]() The parser handles the errors encountered and the rest of the input is parsed. The program errors are detected and reported by parser. What are the different kinds of errors on Compiler Design? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |