In a compiler the module that checks every character of the source text is called
A
The syntax analyzer
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
The code generator
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
The code optimizer
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
The lexical analyzer
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct option is D The lexical analyzer Lexical analysis is a phase of compiler in which a sequence of characters get converted into a group of tokens. A program or function which performs lexical analysis is called a lexical analyzer. So lexical analyzer checks every character of the source text.