The Gateway to Computer Science Excellence
+5 votes

Which of the following is used for grouping of characters into tokens (in a computer) ?

  1. A parser
  2. Code optimizer
  3. Code generator
  4. Scanner
in Compiler Design by Boss (30.7k points)
recategorized by | 2k views

3 Answers

+2 votes

Answer is option (D) Scanner. A scanner or lexical analyzer reads the program from left to right, organize them into tokens and pass those tokens to the next level.

by Active (4.6k points)
0 votes

Ans: D Scanner is also known as lexical analyzer

by Loyal (7.3k points)
0 votes
scanner (lexical analyser)
by (141 points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,258 answers
104,735 users