PBL Compiler
PBL Compiler
Project Title
Team Leader:
PRAVEEN RANA
Student ID: 220111609
Email: [email protected]
Team Member 2:
ADITYA DIMRI
Student ID: 220112100
Email: [email protected]
Team Member 3:
ABHAY BARTWAL
Student ID: 220111351
Email: [email protected]
Team Member 4:
ASHISH NEGI
Student ID: 220111131
Email: [email protected]
PROPOSAL DESCRIPTION
Motivation
Goals:
Project Approach
1. Theoretical Approach
Study grammar rules for C and Python. Understand compiler design
principles and parsing techniques.
2. Simulation-Based Approach
Create a prototype that simulates code translation from C to Python
using predefined templates.
3. Implementation Approach
Build the tool with Python, incorporating C parsing, AST generation,
and code translation.
4. Comparative Study
Compare outputs of the tool with manual translations. Evaluate code
accuracy and efficiency.
5. Performance Analysis
Benchmark translation time, accuracy, and complexity for different
types of input programs.
System Architecture (High-Level Diagram)
+---------------------------+
| User Interface |
+------------+--------------+
+------------v--------------+
| C Code Parser |
| (Lex/Yacc or PyCParser) |
+------------+--------------+
+------------v--------------+
+------------+--------------+
+------------v--------------+
|Intermediate Representation|
+------------+--------------+
+------------v--------------+
+------------+--------------+
+------------v--------------+
+---------------------------+
Project Outcome / Deliverables
Assumptions
Users will manually validate the translated output if the input C code
uses non-standard features.