Question

What does a lexer (lexical analyzer) do in the compilation process?

A Generates optimized machine code
B Checks for semantic errors
C Converts high-level code to assembly language
D Converts source code into a stream of tokens
E None of these
Practice Next

Relevant for Exams:

Hey! Ask a query