COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

COMPILATION PROCESS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
the program is converted from a sequence of characters into a series of tokens by removing white space at this stage
A
Lexical analysis
B
syntax analysis
C
semantic analysis
D
code generation
Explanation: 

Detailed explanation-1: -Explanation: Lexical analyzer is used in the compiler for removing the Whitespace and comments. It is also used in breaking the syntaxes into the set of tokens.

Detailed explanation-2: -A program in compilation phase that performs a lexical analysis process is termed as lexical analyzer, lexer, scanner or tokenizer. Lexical analyzer is used in various computer science applications, such as word processing, information retrieval systems, pattern recognition systems and language-processing systems.

There is 1 question to complete.