Lab Manual: Shri S'ad Vidya Mandal Institute of Technology
Lab Manual: Shri S'ad Vidya Mandal Institute of Technology
Lab Manual: Shri S'ad Vidya Mandal Institute of Technology
LAB MANUAL
COMPILER DESIGN (2170701)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 [REFERENCE BOOK:- Aho, Lam, Sethi, and Ullman, “Compilers: Principles, Techniques and Tools”
Shri S’ad Vidya Mandal Institute of Technology
Department of Computer Science Engineering and Information Technology
NAME:- ___________________________________________________________________________
INDEX
SR.
PRACTICAL TITLE DATE SIGN
NO.
1A. Design a lexical analyzer for given language and the lexical
analyzer should ignore redundant spaces, tabs and new lines.
It should also ignore comments. Although the syntax
specification states that identifiers can be arbitrarily long, you
may restrict the length to some reasonable value.
1B. Design a lexical analyzer for given language in C language.
2A. Write a LEX program to identify whether a given line is a
comment or not
2B. Write a C program to identify whether a given line is a
comment or not
3A. Write a LEX program to test whether a given identifier is valid
or not.
3B. Write a C program to test whether a given identifier is valid or
not.
4A. Write a LEX program to simulate lexical analyzer for
validating operators
4B. Write a C program to simulate lexical analyzer for validating
operators
5. To Study about Lexical Analyzer Generator (LEX) and Flex
(Fast Lexical Analyzer).
6. Implement following programs using Lex.
S. V. M. I. T., Bharuch| Branch – Computer Engineering 2
Enrollment No :- 160450107010 2019
CERTIFICATE
This is to certify that this manual contains practical work performed by
work in the subject of COMPILER DESIGN (2171701) for the term ending in
OCTOBER 2019-20.
DATE :- ______________
_________________________ _____________________________
________________