1.

The methodology to show an error when the analyzer faces a keyword over an user’s input is based on:(a) rule priority(b) longest match rule(c) keyword-out rule(d) none of mentionedI had been asked this question in an interview for internship.I'm obligated to ask this question of Lexical Analysis topic in section Regular Expressions and Languages of Automata Theory

Answer»

The correct OPTION is (a) RULE priority

To explain I WOULD say: The LEXICAL analyzer follows the rule priority where its prioritizes KEYWORDS over an input it gets with the same name as that of the keyword and thus generates an error.



Discussion

No Comment Found

Related InterviewSolutions