CSC376 · 2080 · 10 marks
How does a Lexical Analyzer recognize a token? Give an example to make it clear. Convert the regular expression $a(a+b)(b+c)⭒a# to DFA.
How does a Lexical Analyzer recognize a token? Give an example to make it clear. Convert the regular expression $a(a+b)(b+c)⭒a# to DFA.[10]
Compiler Design and ConstructionChapter 2: Lexical, Syntax and Semantic AnalysisSpecification and Recognition of tokensNumerical: regex to DFA