Compiler Design Lab

Course Name: 

Compilers Design Lab (CS304)

Programme: 

B.Tech (CSE)

Semester: 

Sixth

Category: 

Programme Core (PC)

Credits (L-T-P): 

02 (0-0-3)

Content: 

Implement a lexical analyser for the C programming language using the grammar for the language given in the 28 book "The C Programming Language", 2e, by B Kernighan and D Ritchie .(Uselex/flex for creating the lexical analyser). Implement a desk calculator using operator precedence parsing. Implement a parser for the C programming language using YACC/Bison. Implement a semantic checker for the C programming language (perform semantic analysis such as type and scope analysis and declaration processing, and integrate such analyses with the parser) using YACC/Bison. Create a translator that would translate input into three-address intermediate code using LEX and YACC. 

References: 

Andrew Appel: Modern Compiler Implementation in Java, Cambridge University Press, (2002).
John R. Levine, Tony Mason, Doug Brown: Lex & Yacc, 2nd/updated edition, O'Reilly & Associates, (October1992).
Robert Morgan: Building an Optimizing Compiler, Digital Press, 1998. ISBN1-55558-179-X

Department: 

Computer Science and Engineering
 

Contact us

Dr. Manu Basavaraju
Head of the Department
Department of CSE, NITK, Surathkal
P. O. Srinivasnagar, Mangalore - 575 025
Karnataka, India.
Hot line: +91-0824-2474053
Email: hodcse[AT]nitk[DOT]ac[DOT]in
            hodcse[AT]nitk[DOT]edu[DOT]in

                      

Connect with us

We're on Social Networks. Follow us & get in touch.