Compiler Design Lab (KCS-552) - Practical File
Index
S. No Practical Name Page Remarks
1 Recognize string under a*, a*b+, abb 1
2 Lex program to check if input is verb 2
3 Check if input identifier is valid 3
4 Count number of characters and lines 4
5 YACC program for simple calculator 5
6 YACC program for IF-THEN-ELSE statement 6
7 YACC program for FOR loop 7
8 Recursive descent parser 8
9 Design LALR Bottom-up Parser 9
10 Convert NFA to DFA 10
Page 1
Practical 1
Program No: 1
OBJECTIVE:
This is the detailed explanation and code for practical number 1.
[Write the actual code and explanation here for Practical 1]
OUTPUT:
[Write expected output for Practical 1]
Page 2
Practical 2
Program No: 2
OBJECTIVE:
This is the detailed explanation and code for practical number 2.
[Write the actual code and explanation here for Practical 2]
OUTPUT:
[Write expected output for Practical 2]
Page 3
Practical 3
Program No: 3
OBJECTIVE:
This is the detailed explanation and code for practical number 3.
[Write the actual code and explanation here for Practical 3]
OUTPUT:
[Write expected output for Practical 3]
Page 4
Practical 4
Program No: 4
OBJECTIVE:
This is the detailed explanation and code for practical number 4.
[Write the actual code and explanation here for Practical 4]
OUTPUT:
[Write expected output for Practical 4]
Page 5
Practical 5
Program No: 5
OBJECTIVE:
This is the detailed explanation and code for practical number 5.
[Write the actual code and explanation here for Practical 5]
OUTPUT:
[Write expected output for Practical 5]
Page 6
Practical 6
Program No: 6
OBJECTIVE:
This is the detailed explanation and code for practical number 6.
[Write the actual code and explanation here for Practical 6]
OUTPUT:
[Write expected output for Practical 6]
Page 7
Practical 7
Program No: 7
OBJECTIVE:
This is the detailed explanation and code for practical number 7.
[Write the actual code and explanation here for Practical 7]
OUTPUT:
[Write expected output for Practical 7]
Page 8
Practical 8
Program No: 8
OBJECTIVE:
This is the detailed explanation and code for practical number 8.
[Write the actual code and explanation here for Practical 8]
OUTPUT:
[Write expected output for Practical 8]
Page 9
Practical 9
Program No: 9
OBJECTIVE:
This is the detailed explanation and code for practical number 9.
[Write the actual code and explanation here for Practical 9]
OUTPUT:
[Write expected output for Practical 9]
Page 10
Practical 10
Program No: 10
OBJECTIVE:
This is the detailed explanation and code for practical number 10.
[Write the actual code and explanation here for Practical 10]
OUTPUT:
[Write expected output for Practical 10]
Page 11