1.

What goes over the characters of the lexeme to produce value?(a) Scanner(b) Parser(c) Evaluator(d) Lexical generatorThis question was addressed to me at a job interview.The doubt is from Lexical Analyser topic in division Finite Automata and Regular Expression of Compiler

Answer»

The correct ANSWER is (a) Scanner

The explanation: In order to CONSTRUCT a token, the lexical analyzer needs a second stage, the evaluator, which GOES over the characters of the LEXEME to PRODUCE a value.



Discussion

No Comment Found

Related InterviewSolutions