COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
output of lexical analyzer
A
Machine code
B
Intermediate code
C
A list of tokens
D
A parse tree
Explanation: 

Detailed explanation-1: -A parse tree. Intermediate code. Machine code. A stream of tokens.

Detailed explanation-2: -Lexical Analysis is the first phase of compiler also known as scanner. It converts the High level input program into a sequence of Tokens. Counting all the boxes, the total number of tokens comes out to be 26.

Detailed explanation-3: -Solution: (D). (1) The output of the lexical analyzer is tokens.

There is 1 question to complete.