wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

The task of the lexical analysis phase is

A
To parse the source program into the basic elements or tokens of the language
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
To build a literal table and identifier table
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
To build a uniform symbol table
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
All of the above
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is B All of the above

The task of the lexical analysis phase is

Lexical analysis is the first phase of a compiler. It takes the modified source code from language preprocessors that are written in the form of sentences. The lexical analyzer breaks these syntaxes into a series of tokens, by removing any whitespace or comments in the source code.

1) To parse the source program into the basic elements or tokens of the language.

2) To build a literal table and identifier table.

3) To build a uniform symbol table.



911003_917137_ans_1a3ecce443f44dc9bfb77537c4d8b608.PNG

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Music from Sounds
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon