2,088 views
3 votes
3 votes
In the Lexical Analysis, regular expression can be used to model

A) the structures of lexemes with fixed length identifier excluded
B) the structure of tokens
C) the structure of tokens but not lexemes
D) the structure of lexemes with variable length identifier included

2 Answers

Best answer
4 votes
4 votes
Lexical Analysis deals with lexems and the length of an identifier is not defined in the programming languages mostly... i.e as such there is no constraint on the length of the identifiers so In the Lexical Analysis, regular expression can be used to model the structure of lexemes with variable length identifier included.

So option d
selected by
0 votes
0 votes
option D)the structure of lexemes with variable length identifier included.

Related questions

4 votes
4 votes
6 answers
1
admin asked Mar 31, 2020
1,743 views
The output of lexical analyzer is:A set of regular expressionsStrings of characterSyntax treeSet of tokens