1.

Which among the following is not a tool to construct lexical analyzer from a regular expression?(a) lex(b) flex(c) jflex(d) none of the mentionedThis question was addressed to me in an interview for job.This is a very interesting question from Lexical Analysis in chapter Regular Expressions and Languages of Automata Theory

Answer»

Correct answer is (d) none of the mentioned

Best EXPLANATION: Lexical analysis is done using few tools such as lex, flex and jflex. Jflex is a computer PROGRAM that GENERATES lexical analyzers (ALSO known as lexers or scanners) and works apparently like lex and flex. Lex is commonly USED with yacc parser generator.



Discussion

No Comment Found

Related InterviewSolutions