Program to recognize whether a given sentence is simple or compound. | Compiler Design Lab Programs | Lex Programs

Compiler Design Lab Program :

 Int is_simple=1;
[ \t\n]+[aA][nN][dD][ \t\n]+ {is_simple=0;}
[ \t\n]+[oO][rR][ \t\n]+ {is_simple=0;}
[ \t\n]+[bB][uU][tT][ \t\n]+ {is_simple=0;}
. {;}
int yywrap()
return 1;
 int k;
 printf(“Enter the sentence.. at end press ^d”);
 Printf(“The given sentence is simple”);
 Printf(“The given sentence is compound”);


Sharecodepoint is the junction where every essential thing is shared for college students in the well-defined packets of codes. We are focused on providing you the best material package like Question papers, MCQ'S, and one NIGHT STUDY MATERIAL. facebook twitter youtube instagram

Post a Comment

Previous Post Next Post

Contact Form