TOOLS AND TECHNIQUES FOR COMPILER DESIGN
MISCELLENOUS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Blank spaces and comment lines will be eliminated by the compiler during ____
|
lexical analysis
|
|
syntax analysis
|
|
preprocessing
|
|
code optimization
|
Explanation:
Detailed explanation-1: -Whitespace. Whitespace is composed of strings of Unicode SPACE, CHARACTER TABULATION, FORM FEED (FF), LINE FEED (LF) and CARRIAGE RETURN (CR) characters. Outside of a comment, string literal, or single quoted literal, whitespace acts as a token separator and is immediately discarded by the lexer.
Detailed explanation-2: -Roles of the Lexical analyzer Removes white spaces and comments from the source program.
There is 1 question to complete.