Question
Hello. I would like to solve this question in detail today by using Lex . Please Question 1. Before you actually start constructing your compiler,
Hello. I would like to solve this question in detail today by using Lex . Please
Question 1. Before you actually start constructing your compiler, you need to intensely explore Lex tool which will be mainly used in lexical analysis phase. This programming assignment is for using Lex tool to scan and analyze an input text file. Use Lex tool to scan and analyze the content of a text file. The output should show the following: 1.The longest word in the file.
2.Print all integer and double numbers that are in [50,70]. Print an appropriate mes- sage if there is no number in [50,70]
3.All words that start with vowels. Print an appropriate message if there is no word start with a vowel. 4.The number of times the word the mentioned in the file. Submit the following: A soft copy of a single lex .l file through LMS. (Feb 20th before 11:59 PM). A screen sots of the output
Sample Input File: This generational and chronological list of Intel processors attempts to present all of Intel's processors from the pioneering 4-bit 4004(1971) to the present high- end offerings, which include the 64-bit Itanium 2 (2002), Intel Core i7, and Xeon E3 and E5 series processors (2015). Concise technical data are given for each product. Output: The longest word is chronological There are 11 words that start with vowel letter. They are: and, of, Intel, attempts, all, offerings, include, Itanium, and are, each The numbers that are between 50 and 70 are: 64 There are 3 the mentionedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started