Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a LEX program in c to get the following output: souce file: Expected output file Output.txt Malaysia 1109090 Hawaii 8081234567 8089876554 8769787878 India 8081234567
Write a LEX program in c to get the following output:
souce file:Expected output file
Output.txt
Malaysia 1109090
Hawaii 8081234567 8089876554 8769787878
India 8081234567 8089876554 8769787878 7056565566
Jamaica 8769787878
Japan 8081234567 8089876554
format for the countries
GNU nano 6.2 8081234567 1109090 8089876554 8769787878 7056565566 ((1)[09]{6}) \{phone_print (0, yytext, yyout );} ((808)[09]{7}) \{phone_print(1,yytext, yyout );} ([69][09]{9}) \{phone_print(2, yytext, yyout ); } (876[09]{7}) \{phone_print(3, yytext, yyout) ;} ([69](0)[09]{8}) phone_print(4, yytext, yyout );}Step 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