Question: 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:Write a LEX program in c to get the following output: souceExpected output file

Output.txt

Malaysia 1109090

Hawaii 8081234567 8089876554 8769787878

India 8081234567 8089876554 8769787878 7056565566

Jamaica 8769787878

Japan 8081234567 8089876554

format for the countries

file:Expected output file Output.txt Malaysia 1109090 Hawaii 8081234567 8089876554 8769787878 India 8081234567

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!