Compiler Design Lab
Course Name:
Compilers Design Lab (CS304)
Programme:
Semester:
Category:
Credits (L-T-P):
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.