What are three reasons why syntax analyzers are based on grammars?

Explain the three reasons why lexical analysis is separated from syntax
analysis.

Define lexeme and token.

. What are the primary tasks of a lexical analyzer?

Describe briefly the three approaches to building a lexical analyzer.

What is a state transition diagram?