Question:medium

In a compiler, which phase is responsible for identifying the token types from the source program's stream of characters?

Show Hint

A Lexer often uses Regular Expressions to define what constitutes a token and Finite Automata (DFA) to implement the actual scanning logic.
Updated On: Jul 4, 2026
  • Syntax Analysis
  • Semantic Analysis
  • Lexical Analysis
  • Intermediate Code Generation
Show Solution

The Correct Option is C

Solution and Explanation

Was this answer helpful?
0

Top Questions on Regular expressions and finite automata