This document discusses compiler construction and error handling. It describes the basic tasks of an error handler as detection, reporting, and recovery of errors encountered during compilation. Errors are classified and the document focuses on lexical analysis. The lexical analyzer takes source code as character streams and breaks it into tokens based on predefined patterns and grammar rules. It generates errors for invalid tokens and works closely with the syntax analyzer by passing tokenized data.