You are on page 1of 1

Compiler Design Lab:

1. LEX Program to count the number of vowels and consonants in a given string.
2. LEX Program to count the number of lines, words, and characters in the input.
3. LEX Program to count the number of integers and floating point numbers appearing in the input.
4. LEX Program to list out all words of length three, starting with "A" .
5. LEX Program to list out all C-like comments (both single line and multi line comments) from a text file.
6. Write a C program to find FIRST and FOLLOW.
7. Write a C program for constructing of LL (1) parsing.

8. Write a C program to implement Shift Reduce Parsing.

9. Write a C program to implement LALR parsing.

10. Write a program to generate machine code.

You might also like