Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Vel Tech Rangarajan Dr.

Sagunthala R&D Institute of Science and Technology


(Deemed to be University Estd. u/s 3 of UGC Act, 1956)
Avadi, Chennai-600062, Tamil Nadu, India Ver1.0

School of Computing

B.Tech. Computer Science and Engineering

TUTORIAL SHEET

Programme B.Tech.(CSE)
Academic Year 2023-2024 Year: III Semester:WS23-24
Course code/Name 10211CS107/Compiler Design
Date: Hour: 3 Slot: S4+T8
Names of faculty Mr. Sankar Ganesh. K
This tutorial is
Corresponding to UNIT -1

Task 1/Question 1
Related Course
Outcomes (✓):

CO1 Interpret the Draw Transition diagram for identifier, keywords, numbers and relation
different phases of operators.
compilation with
compile time error
handling and design
the lexical analyzer
for a language.
Interpret the lexemes that makeup the token in the following program
Task 2/Question 2
segment. Indicate the corresponding token and pattern.
Related Course
long factorial(int n)
Outcomes (✓): {
if (n == 0)
CO1 Interpret the return 1;
different phases of else
compilation with return(n * factorial(n-1));
compile time error }
handling and design void main()
the lexical analyzer {
for a language. int number;
long fact;
printf("Enter a number: ");
scanf("%d", &number);
fact = factorial(number);
printf("Factorial of %d is %ld\n", number, fact);
return 0;
}

Signatures
Faculty 1:
Program Coordinator
Faculty 2:

You might also like