COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
which of the following is a lex analysis tool
A
lex
B
flex
C
jflex
D
all the above
Explanation: 

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: -The lex command helps write a C language program that can receive and translate character-stream input into program actions. To use the lex command, you must supply or write a specification file that contains: Extended regular expressions. Character patterns that the generated lexical analyzer recognizes.

There is 1 question to complete.