- Program to count the number of vowels and consonents in a word
lex vowels.l
cc lex.yy.c
./a.out
--
- Progra to identify the types of numbers
lex number.l
cc lex.yy.c
./a.out
--
- Program to count the number of comment lines in a file and also copy the program to another file after deleting the comments
lex comment.l
cc lex.yy.c
./a.out
--
- Program to count the number of words, spaces, charachers, lines from a file
lex words.l
cc lex.yy.c
./a.out
--
- Program to determine if a given sentence is simple or Compound
lex simple.l
cc lex.yy.c
./a.out