1.

It has encoded within it information on the possible sequences of characters that can be contained within any of the tokens it handles. The mentioned function is performed by?(a) Scanner(b) Parser(c) Syntactic Analyser(d) All of the mentionedThe question was asked during an interview for a job.I'm obligated to ask this question of Lexical Analyser in division Finite Automata and Regular Expression of Compiler

Answer»

The correct choice is (a) Scanner

To elaborate: The FIRST STAGE, the scanner, is FSM. It has ENCODED information on the POSSIBLE SEQUENCES of characters that can be contained within any of the tokens it handles.



Discussion

No Comment Found

Related InterviewSolutions