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

In a compiler, grouping of characters Into token is done by

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

The correct option is B scanner

In a compiler, grouping of characters into token is done by scanner.

A compiler is a tool which is used to converts the text of a programming language (called source code) into machine code. The machine code can then be executed on the machine, without the original source code being present.

The scanner is a subroutine which is frequently called by an application program like a compiler. The major steps involved in this design process are: identification of tokens, construction of a state diagram, building driver tables and finally writing a scanning routine.


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