0% found this document useful (0 votes)
124 views6 pages

CC Project Proposal

This document presents a project proposal for a compiler construction project at Superior University Lahore to implement text reading for C and C++. The project aims to solve problems with case sensitivity in C++ by using Lex tool. The proposed solution will provide more user-friendly error messages. The implementation will involve making automata expressions, DFAs from them, and writing code in Flex. The project plan outlines roles and responsibilities for fetching details, discussions, making DFAs, adding features, and writing/testing code over a period of 6 weeks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
124 views6 pages

CC Project Proposal

This document presents a project proposal for a compiler construction project at Superior University Lahore to implement text reading for C and C++. The project aims to solve problems with case sensitivity in C++ by using Lex tool. The proposed solution will provide more user-friendly error messages. The implementation will involve making automata expressions, DFAs from them, and writing code in Flex. The project plan outlines roles and responsibilities for fetching details, discussions, making DFAs, adding features, and writing/testing code over a period of 6 weeks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

SUPERIOR UNIVERSITY LAHORE

Faculty of Computer Science & IT


Compiler Construction

PROJECT PROPOSAL& PLAN

[TEXT READING FOR C & C++]

Project Team
Student Name Student ID Program Contact Number Email Address
Talha Hasnain Bcsm-f16-028 BSCS [email protected]
Muhammad Shakir Bcsm-f16-202 BSCS [email protected]
Muhammad Afzal Bcsm-f15-109 BSCS [email protected]

Miss Maryam
[Junior Lecture]
Change Record

Author(s) Version Date Notes Supervisor’s Signature


1.0 Original Draft
Changes Based on
Feedback from
Supervisor
Changes Based on
Feedback From Faculty
Added Project Plan
Changes Based on
Feedback from
Supervisor
Project Proposal

Project Title:[TEXT READING FOR C & C++]

Executive Summary
In this project, you need to implement a compiler for a language defined here. The
programminglanguage to use is C or C++ (and the language defined by the corresponding
tools).We will be using different states in the flex code for representing the each instruction of
syntax C++.we are solve the text reading problem because of c is a case sensitive language.

1. Introduction
C++ is a case sensitive language. This means that lower case and upper case letters are read as
different letters. Ex: ‘a’ is not the same as ‘A’.so face many problems during written code in c++
.we are solve the problem using Lex tool for this purpose.

2. Existing System.
 The principal use of any compiler is to transform a program written in a high-level
language like C++ into a data file that is executable by the target computer hardware. You can
use Many compilers such as dev,Dev C++ , Clang , Visual C++,Intel C++, NetBeans, are being
used for this purpose.
 The compiler takes each output from the preprocessor and creates an object file from it
in two steps. First, it converts the pure C++ code (without any # directives) into assembly code.
Assembly code is binary code that we can read. Sometimes, it can be useful to read assembly
code.
3. Problem Statement
C++ is a case sensitive programming language.

Uppercases and lowercases are considered to be different. They both are different from each
other.and many face data type problem using c++ code.

For example:

int xyz; // first variable of type integer.

int Xyz; // second variable of type integer.

int XYZ; // third variable of type integer.

In above example as we can see, they all are of same data type i.e. integer type and almost
looks same, but they will be treated as different because of the uppercases and lowercases.

Some compilers allows us to turn case sensitivity off. But it will lead us and other programmes
to a very confusing state, so it is not recommended.

4. Proposed Solution
We propose the solution to it by making the error messages more user friendly and
understandable for to execute the query with more efficiency and user friendly experience.
So user don’t have to worry about the difficult and alien type language.
5. Scope of the Project
The project can be used for following purposes.
 Basic editor: user can write code of devc++ in the program.
 Analyzer: the compiler will then analyze what does it means.
 Error finding: the compiler will then tell if there is any error it the program that user
have typed.
 Understandable: the error messages will be user friendly and not like the typical difficult
language the user more often don’t understand what they means.
6. Implementation Tools and Techniques
 Lex tool
 Yacc
 Ubantu

7. Project Plan
The plan is divided into following parts:
 Makes Automata Expressions
 Make the DFA’s From it
 Write the Code in the flex.

Roles & Responsibility Matrix:


The purpose of roles & responsibility matrix is given below:

WBS WBS Deliverable Activity Activity to Duration Responsible


# # Complete the (# of Team Member(s)
Deliverable Days) & Role(s)
Shakir,
Fetching details from
1 13-07-2020 1 2 Talha,
teacher
Afzal
Shakir,
Confirmation
2 15-07-2020 2 1 Talha,
regarding proposal
Afzal
Shakir,
3 20-07-2020 3 Discussion 2 Talha,
Afzal
Shakir,
4 22-07-2020 4 Make The DFA’S 2 Talha,
Afzal
Shakir,
5 27-07-2020 5 Add features 2 Talha,
Afzal
Shakir,
Write The Code From
6 29-07-2020 6 3 Talha,
DFA’S
Afzal
7 03-08-2020 7 testing 3

You might also like