What are different tasks of Lexical Analysis?
The main task of lexical anlyzer is to form token.It takes source code as input & begin scanning from left to right & form token which are enter in the symbol table to generate parse tree during compilation.So lexical anlyzer is the first part of compilation.