The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+6 votes

The output of  a lexical analyzer is

  1. A parse tree
  2. Intermediate code
  3. Machine code
  4. A stream of tokens
asked in Compiler Design by Veteran (37.3k points) | 1.9k views

6 Answers

+10 votes
Best answer
option D will be correct..

Lexical analyzer take the source code as input and convert it into the stream of tokens as output....
answered by Veteran (27.6k points)
selected by
+3 votes
Lexical analyzer scans every character of the input and divides them into individual tokens.

So ans is D.
answered by Loyal (4.7k points)
+2 votes
Lexical  analyser takes high level language as input and produces stream of tokens as output
answered by Active (1.1k points)
+2 votes
The function of lexical analyzer is to read the source program, one character at a time, and to translate it into a sequence if primitive units called tokens.

Answer: D (A stream of tokens)
answered by Veteran (10.4k points)
0 votes
Option D
answered by Loyal (2.9k points)
0 votes
Ans: D
answered by Boss (7.9k points)

Related questions

0 votes
2 answers
+7 votes
5 answers
asked Feb 14 in Compiler Design by gatecse Veteran (19.7k points) | 1.4k views
+1 vote
1 answer

34,291 questions
41,038 answers
39,940 users