Input:
%{
%}
%%
[\t ]+
is |
am |
go|Mango {printf("\n%s: is a verb",yytext);}
I|she|we|he|i {printf("\n%s : is a subject ",yytext);}
eat {printf("\n%s : is a object ",yytext);}
[a-zA-z]+ {printf("\n%s: is not verb",yytext);}
%%
main()}
{
yylex();
%{
%}
%%
[\t ]+
is |
am |
go|Mango {printf("\n%s: is a verb",yytext);}
I|she|we|he|i {printf("\n%s : is a subject ",yytext);}
eat {printf("\n%s : is a object ",yytext);}
[a-zA-z]+ {printf("\n%s: is not verb",yytext);}
%%
main()}
{
yylex();
Output:
database@database-Veriton-Series:~/Desktop$ lex frist.l
database@database-Veriton-Series:~/Desktop$ cc lex.yy.c -ll
database@database-Veriton-Series:~/Desktop$ ./a.out
i eat mango
i : is a subject
eat : is a object
mango: is not verb
Hello,
ReplyDeletewelcome to technechhacks where problems are been solved,
We deal with the total functioning of sites like
+ SOCIAL MEDIA (Facebook, twitter, Instagram, Snapchat etc.)
+ BANK ACCOUNTS.
+ ICLOUD.
+ CRIMINAL RECORDS.
+ SCHOOL GRADES.
+ CREDIT SCORES.
+ SPOUSES PHONES.
+ BINARY RECOVERY.
+ BTC MINING etc.
Thus Beware of scammers because most persons are been scammed and they end up getting all solutions to their cyber bullies and attacks by US.
I am Jason Williams one of the leading hack agents.
PURPOSE IS TO GET YOUR JOBS DONE AT EXACTLY NEEDED TIME REQUESTED!!
And our WORK SUCCESS IS 100%!!!
I'm always available for you when you need help.
Contact or write us on:
technechhacks@gmail.com or
intelcorehacks@gmail.com
Thanks for your time.