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 mentioned
I 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