in Compiler Design retagged by
1,729 views
4 votes
4 votes

The output of lexical analyzer is:

  1. A set of regular expressions
  2. Strings of character
  3. Syntax tree
  4. Set of tokens
in Compiler Design retagged by
by
1.7k views

6 Answers

5 votes
5 votes
Lexical analyser uses the regular expressions as defined by the language specification to output a set of tokens for the synatax analyser whose output is a systax tree after matching the syntax.

So, answer is D.

Option B is not wrong as each token can be considered a string of tokens, but D is a better choice.
by

1 comment

D is the correct option.
0
0
1 vote
1 vote
Output of Lexical analyzer is set of tokens

So D is correct.
0 votes
0 votes
answer:- (d)

reason- the output of a lexical analyzer is the set of tokens
0 votes
0 votes
Lexical analyzer scans whole source program character by character and produces the set of tokens

So the answer is D
Answer:

Related questions