2076 10

CSC376 · 2076 · 6 marks

Discuss the importance of error handler in compiler. How is it manipulated in the different phases of compilation?

Discuss the importance of error handler in compiler. How is it manipulated in the different phases of compilation?[6]

Compiler Design and ConstructionChapter 1: Compiler Structure and Basic ConceptsBasic concepts related to Compiler such as interpreter, simp

During the compilation of a source program, errors can be encountered at any phase of compilation. An error handler is a component that is invoked whenever such an error is detected. Its importance can be summarized as follows: - It detects and reports errors with suitable, meaningful error messa...