Program in “LEX” to count the verb in a given line of text.
#1

Objective
Program in “LEX” to count the verb in a given line of text.


Code:
%{
%}
%%
isI
areI
amI                  printf("%s is verb",yytext );
[a-zA-Z]+      {printf("%s is not a verb",yytext);}
.I\n                  {ECHO;}
%%
main()
{
yylex();
}
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: program to find palindrome in lex, decimal lex program, lex identifiers in c, find impulse response of given system048, how to check a number is prime or not in lex program, which of the following is not an acceptable base form simple past past participle of an irregular verb a drink drank drunk b, character count framing method program,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  VHDL program for Booth’s Multiplier smart paper boy 2 5,668 20-04-2013, 11:59 AM
Last Post: T
  Program in “LEX” to count number of vowels and consonants seminar class 2 9,641 22-03-2013, 10:20 AM
Last Post: computer topic
  Program in “LEX” to count number of Identifiers and Keywords seminar class 1 4,858 28-01-2013, 03:21 PM
Last Post: Guest
  Text Demo Java source code smart paper boy 0 2,074 30-08-2011, 12:44 PM
Last Post: smart paper boy
  Text Area Demo Java source code smart paper boy 0 2,083 30-08-2011, 12:44 PM
Last Post: smart paper boy
  To predict Exons in the given nucleotide sequence using the HMM gene tool. smart paper boy 0 1,241 10-08-2011, 02:50 PM
Last Post: smart paper boy
  To predict Open Reading Frames (ORFs) in the given nucleotide sequence using the ORF smart paper boy 0 1,421 10-08-2011, 02:49 PM
Last Post: smart paper boy
  To predict the genes in the given nucleotide sequence using the GenScan tool. smart paper boy 0 1,194 10-08-2011, 02:46 PM
Last Post: smart paper boy
  To perform multiple sequence alignment between the given sequences using Clustalw2 to smart paper boy 0 1,397 10-08-2011, 02:44 PM
Last Post: smart paper boy
  To perform global alignment between the given sequences using EMBOSS tool. smart paper boy 0 1,357 10-08-2011, 02:43 PM
Last Post: smart paper boy

Forum Jump: