COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

OVERVIEW OF COMPILERS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
This phase scans the source code as a stream of characters and converts it into meaningful lexemes.
A
Lexical Analyzer
B
Syntax Analyzer
C
Semantic Analyzer
D
Code Generator
Explanation: 

Detailed explanation-1: -Lexical analysis is called linear analysis or scanning. In this phase the stream of characters making up the source program is read from left-to-right and grouped into tokens that are sequences of characters having a collective meaning.

Detailed explanation-2: -The lexical analysis phase reads the characters in the source program and grouped into tokens that are sequence of characters having a collective meaning. Blanks separating characters of these tokens are normally eliminated during lexical analysis. Hierarchical Analysis is called parsing or syntax analysis.

There is 1 question to complete.