COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
lex
|
|
flex
|
|
jflex
|
|
all the above
|
Detailed explanation-1: -Explanation: oolex, flex, lex, jflex, all are lexical analyzer tools which perform the following function. Explanation: Lexical analysis or scanning is the process of parsing the source code into proper syntactic classes.
Detailed explanation-2: -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. Lexical Analyzer will convert the input string entered by the user into tokens as its output.
Detailed explanation-3: -FLEX (fast lexical analyzer generator) is a tool/computer program for generating lexical analyzers (scanners or lexers) written by Vern Paxson in C around 1987.
Detailed explanation-4: -Lexical Analysis is the first phase of compiler also known as scanner. It converts the High level input program into a sequence of Tokens.
Detailed explanation-5: -Explanation: A lexical analyzer coverts character sequences to set of tokens.