COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
output of lex program is
|
lex.c
|
|
lex.yy.c
|
|
lex.l
|
|
lex.yy.l
|
Explanation:
Detailed explanation-1: -It is a tool or software which automatically generates a lexical analyzer (finite Automata). It takes as its input a LEX source program and produces lexical Analyzer as its output.
Detailed explanation-2: -yylex() returns a value indicating the type of token that has been obtained. If the token has an actual value, this value (or some representation of the value, for example, a pointer to a string containing the value) is returned in an external variable named yylval.
Detailed explanation-3: -Explanation: The output of Lex is a string of tokens.
There is 1 question to complete.