1. Create a file named "input.txt" with the following lines: int a, b, cl; a=10, b= 20; c1 = a + b; this is a program. Write a flex program to detect the following: • identifiers/words • operators •...


1. Create a file named

Extracted text: 1. Create a file named "input.txt" with the following lines: int a, b, cl; a=10, b= 20; c1 = a + b; this is a program. Write a flex program to detect the following: • identifiers/words • operators • keywords • count the number of semicolon and full-stop. • count the identifiers/words and line numbers. After executing the program the output will be like the following: Portion of our output int - keyword a - identifier/word - operator b - identifier/word - operator c1 - identifier/word this - identifier/word number of identifier/word 12 line number - 4

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here