- Lexical analyzer is divide the given sentence into meaningful string known as Tokens.
- Lexical Analyzer eliminates comment lines and whitespace character etc.
- Lexical analyzer helps to give error messages by providing line no. and column no.
- Lets see the structure of lexical analyzer:
- Here it will create / find tokens with the help of symbol table