LEX Program
Q1. To write a LEX program to count no of vowels and consonants in a given string.
Q2. To write a LEX program to count the numbers of characters, words, space and line in input file
Q3. To write a LEX program to count the number of
a) Positive and negative integers
b) Positive fraction and negative fraction
Q4. To write a LEX program to count the number of comment lines in a given c file and eliminate them and copy that program into separate file
Q5. To write a LEX to count the no of "scanf" and "printf" statement in a c program. Replace them with "writf" and "readf" respectively.
Q6. write a LEX program to identify the number is Even or Odd.
YACC Program
Q2. Write a YACC Program to evaluate the arithmetic expression and check validation and print the result?
Comments
Post a Comment