CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

In compilers, the syntax analysis is done by

A
Lexical analyzer
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Scannar
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Parser
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
Code generator
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C Parser

In compilers, the syntax analysis is done by parser.

parser:-

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.

Syntax analysis:-

Syntax analysis is the process of analyzing a string of symbols, either in natural language, computer languages or data structures, conforming to the rules of a formal grammar.



911492_917259_ans_01a6f0bd2e0744689c2768c289379420.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