CC Project Proposal
CC Project Proposal
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
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:
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.