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

In a compiler, the module which checks every character of the source text is called

A
the code generator
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
the code optimizer
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
the lexical analyzer
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
the syntax 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 syntax analyzer

In a compiler, the module which checks every character of the source text is called the syntax analyzer.

A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or "code" that a computer's processor uses.

A syntax analyzer or parser takes the input from a lexical analyzer in the form of token streams. The parser analyzes the source code (token stream) against the production rules to detect any errors in the code. The output of this phase is a parse tree.



923438_918609_ans_df58c158ea254110b8afaa63cdbe43f2.PNG

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Database Structuring
ACCOUNTANCY
Watch in App
Join BYJU'S Learning Program
CrossIcon