Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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 vowel. 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" mentioned

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

ISBN: 1583473858, 978-1583473856

Students also viewed these Databases questions

Question

Try replying to the first advertisement on p. 226.

Answered: 1 week ago

Question

What are the types of forms of communication ?

Answered: 1 week ago

Question

Explain the process of MBO

Answered: 1 week ago