Question: Develop a lexical analyzer which reads and interprets Roman numerals. This program depends on Lex recognizing the longest of several alternative patterns, e.g. if it

Develop a lexical analyzer which reads and interprets Roman numerals. This program depends on Lex recognizing the longest of several alternative patterns, e.g. if it sees an "I", it doesn't apply the action for the "I" rule until it has first checked that the next character isn't "V" or "X". Your document should include the following. Explain general syntax of Lex format B3.2 Implementation (Lex File) Results Develop a lexical analyzer which reads and interprets Roman numerals. This program depends on Lex recognizing the longest of several alternative patterns, e.g. if it sees an "I", it doesn't apply the action for the "I" rule until it has first checked that the next character isn't "V" or "X". Your document should include the following. Explain general syntax of Lex format B3.2 Implementation (Lex File) Results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
