CSPC41 Compiler Design Project Assignment
You can form 16 groups of which 14 groups with 4 students and other 2 groups can have 3.
Two groups can select a particular project from the options given below. These two groups will
be evaluated one after the other. It is not expected from a Group to simply copy the code and
report from other.
Implement the project using LEX and YACC as per the requirements.
Front-end phase involves the first 4 phases of the compiler from lexical analysis to intermediate
code generation. Try implementing as much phases as you can. It is planned to conduct relative
grading on this project.
1. Simulation of front-end phase of C Compiler involving if, if-else, else-if and nested if,
if-else, else-if constructs.
2. Simulation of front-end phase of C Compiler involving while loop with nested while
loop and/or if-else constructs.
3. Simulation of front-end phase of C Compiler involving for construct with nested for
loop and/or if-else constructs.
4. Simulation of front-end phase of C Compiler involving do while with switch-case
constructs.
5. Simulation of front-end phase of C++ Compiler involving operator overloading
construct. Also, display whether the operator used in pseudocode is an overloaded
operator or not.
6. Simulation of front-end phase involving conditional constructs in PASCAL.
7. Simulation of front-end phase involving looping constructs in PASCAL.
8. Simulation of front-end phase involving operators (all types) in JAVA considering its
precedence and associativity. Also, evaluate and display the input expressions in the
pseudocode.
Submit a soft copy of the report to the Project assignment link in MS Teams class group.
Once the implementation is complete, I would like to interact with the group members via an
online meeting where I can evaluate your contributions to the project. This can be scheduled
in advance based on a specific date (on or before 30th October 2021) or as and when a particular
group is ready with the project.