Answer the following Question :
The process of building a lexical analyzer involves a number of steps.
It uses regular expressions, defining token kinds, finite automata, and programming to simulate the finite automaton involved.
Describe in more detail about the steps for building a lexical analyzer.