Lexical analyzer reads the characters from source code and convert it into tokens. The lexical analyzer is the part of the compiler that detects the token of the program and sends it to the syntax analyzer. Token is the smallest entity of the code, it is either a keyword, identifier, constant, string literal, symbol. Concept required:-
- File Concept of C.
- Lex Program
- Regualar Expression