1a. Lex Program to count the number of characters, words, spaces and lines in a given input file.
1b. Lex Program to recognize and count the number of identifiers in a file.
2a. Lex Program to count the numbers of comment lines in a given C program. Also eliminate them and copy the resulting program into separate file.
2b. Lex Program to recognize whether a given sentence is simple or compound.
3a. Lex Program to count no of :
i.+ve and –ve integers
ii. +ve and –ve fractions
3b. Lex Program to count the no of ‘scanf’ and ‘printf’ statements in a C program. Replace them with ‘readf’ and ‘writef’ statements respectively.
Yacc Program to evaluate arithmetic expression involving operators +,-,*, / .
Program to recognize a valid variable which starts with a letter, followed by any number of letters or digits.
Program to recognize the strings using the grammar (a^n b^ n; n>=0).
C program to implement a Pass 1 assembler.
C Program to implement Absolute Loader.
C program to find the FIRST in context free grammar.
C Program to implement Shift Reduce Parser for the given grammar.
C Program to implement code optimization techniques.