- A Lex program to recognize and count the number of identifiers in a given input.
- A Lex program to count the characters, words, spaces, and lines in a given input file.
- A Lex program to count the number of comment lines in a given C/C++/Java program.
- A Lex program to identify an integer, floating point, exponential, or complex number.
- A Lex program to identify a Grameenphone/Airtel/Robi/Banglalink/Teletalk number.
- A Lex program to recognize whether a given sentence is simple, compound, or complex.
- A Lex program to identify "to be" verb.
- Find the FIRST and FOLLOW of a given grammar.
Construct a complete 'Lexer' using Lex and a complete 'Parser' using C/C++ (either LL(0) or LL(1) parser).
Special thanks to:
Ensure you have the following tools installed:
Run Flex
flex filename.lCompile using GCC
gcc lex.yy.cExecute the Program
a.exe