Important..!About write a lex program to calculate number of vowels and consonants in a text entered by user is Not Asked Yet ? .. Please ASK FOR write a lex program to calculate number of vowels and consonants in a text entered by user BY CLICK HERE ....Our Team/forum members are ready to help you in free of cost...
Below is stripped version of available tagged cloud pages from web pages.....
Thank you...
Thread / Post Tags
Title: PROGRAM TO IDENTIFY VOWELS AND CONSONANTS GIVEN AS INPUT
Page Link: PROGRAM TO IDENTIFY VOWELS AND CONSONANTS GIVEN AS INPUT -
Posted By: smart paper boy
Created at: Wednesday 10th of August 2011 02:14:12 PM
Algorithm:-
begin
if a,e,I,o,u or A,E,I,O,U
then
printf “It is a vowel”
else
printf “It is a consonant”
end

1. LEX program to count number of vowels and consonants in a given input string

%%
{printf(“it is vowel”);}
{printf(“it is consonant”);}
%%
main()
{
yylex();
}
int yywrap()
{
return 1;
}



Output:

$./a.out
a
it is a vowel
g
it is a consonant
..............etc

[:=Read Full Message Here=:]
Title: Program in LEX to count number of vowels and consonants
Page Link: Program in LEX to count number of vowels and consonants -
Posted By: seminar class
Created at: Saturday 07th of May 2011 03:19:40 PM
lex program to count no of vowels and consonants, lex program to count vowel and consonanat, lex code to count number of vowels, lex program to count number of vowels from some names, number of vowels and consonant rules in lex, program to recognize and count the number of vowels and consonants in lex, lex program to count number of vowels and consonants in a file,
Objective
Program in “LEX” to count number of vowels and consonants .


%{
int count1=0;
int count2=0;
%}
%%
aIeIiIoIu {printf(%s is vowel,yytext);count1++;}
{printf(%s is constonant,yytext);count2++;}
.I\n {ECHO;}
%%
main()
{
yylex();
printf(%d Vowel =%d constonant=,count1,count2);
}

..............etc

[:=Read Full Message Here=:]
Title: Program in LEX to count number of Identifiers and Keywords
Page Link: Program in LEX to count number of Identifiers and Keywords -
Posted By: seminar class
Created at: Saturday 07th of May 2011 03:23:35 PM
lex program to count the number of keywords and identifiers, lex program to count the number of identifiers and non idntifiers, lex program to count decimal numbers, lex program used to count keywords,
Objective
Program in “LEX” to count number of Identifiers and Keywords.


digit
letter
%{
int count1=0;
int count2=0;
%}
%%
intI
floatI
char {count++;printf(%s is keyword,yytext);}
{letter}I({letter}I{digit})*{count2++;}
+ {printf(%s is not keyword,yytext);}
.I\n {ECHO;}
%%
main()
{
yylex();
printf(%d no of keyword %d no of id,count1,count2);
}

..............etc

[:=Read Full Message Here=:]
Title: algorithm to find vowels and consonants
Page Link: algorithm to find vowels and consonants -
Posted By:
Created at: Monday 04th of May 2015 08:31:14 PM
..............etc

[:=Read Full Message Here=:]
Title: Program in LEX to count the verb in a given line of text
Page Link: Program in LEX to count the verb in a given line of text -
Posted By: seminar class
Created at: Saturday 07th of May 2011 03:20:24 PM
Objective
Program in “LEX” to count the verb in a given line of text.


%{
%}
%%
isI
areI
amI printf(%s is verb,yytext );
+ {printf(%s is not a verb,yytext);}
.I\n {ECHO;}
%%
main()
{
yylex();
}
..............etc

[:=Read Full Message Here=:]
Title: Write a C Program to declare an array for 2 0 floats Accept the values from the user
Page Link: Write a C Program to declare an array for 2 0 floats Accept the values from the user -
Posted By: smart paper boy
Created at: Monday 20th of June 2011 02:11:52 PM
Write a C Program to declare an array for 2 0 floats. Accept the values from the user sort the two arrays in descending order. Merge the two arrays into a new array and display the new array.
/* Build your program around this..... */
main()
{
int a, b, c;
float t;

/*declare an array for 2 0 floats*/
float aList1;
float aList2;
float aList;

/* Accept the values from the user */
/* 1 */
for (c=0; c++;c <20)
scanf(%f, alist1+c);
/* 2 */
for (c=0; c++;c <20)
scanf(%f, alist2+c);

/* sort the ..............etc

[:=Read Full Message Here=:]
Title: lex program to recognise and count number of identifiers in a given file
Page Link: lex program to recognise and count number of identifiers in a given file -
Posted By:
Created at: Thursday 11th of October 2012 02:13:34 AM
lex program to recognise and count number of identifiers in a given file ?..............etc

[:=Read Full Message Here=:]
Title: Program in CLex to check whether Identifier is valid or not
Page Link: Program in CLex to check whether Identifier is valid or not -
Posted By: seminar class
Created at: Saturday 07th of May 2011 03:19:40 PM
Objective
Program in “C/Lex” to check whether Identifier is valid or not

#include
#include
void main()
{
clrscr();
int i=0,j=0,flag=1;
char ch,ip;
while((ch=getchar())!='\n')
{
ip=ch;
i++;
}
ip='*';
if((ip>='a'&&ip<='z')||(ip>='A'&&ip<='Z'))
{
j++;
while(ip!='*')
{
if((ip>='a'&&ip<='z')||(ip>='A'&&ip<='Z')||(ip>='0'&&ip<='9')||ip=='_')
{
j++;
}
else
{
flag=0;
goto loop;
}
}
}
else
flag=0;
lo..............etc

[:=Read Full Message Here=:]
Title: Program in LEX to count number of Characters Words Lines
Page Link: Program in LEX to count number of Characters Words Lines -
Posted By: seminar class
Created at: Saturday 07th of May 2011 03:21:12 PM
Objective
Program in “LEX” to count number of Characters, Words, Lines.


%{
int nchar=0,nword=0,nline=0;
#include
%}
%%
\n {nline++;nchar++;}
+ {nword++;nchar+=yyleng;}
. {nchar++;}
%%
int main()
{
yylex();
printf(%d%d%d,nchar,nword,nline);
}

..............etc

[:=Read Full Message Here=:]
Title: fuzzy logic control of a brushless dc motor to run at exactly entered speed documentation
Page Link: fuzzy logic control of a brushless dc motor to run at exactly entered speed documentation -
Posted By:
Created at: Friday 11th of January 2013 03:55:23 PM
i need a complete documentation of fuzzy ligic control of a brushless dc motor to to run at exactly entered speed(model no.155 hardware)..............etc

[:=Read Full Message Here=:]
Please report us any abuse/complaint to "omegawebs @ gmail.com"