C++ Lex using CSharp
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
project topics
Active In SP
**

Posts: 2,492
Joined: Mar 2010
#1
22-04-2010, 12:10 AM


C++ Lex using CSharp is a system software ( Lexical Analyzer) project and implimentation where the input program is broken down into many fragments called tokens. Basically lexical analysis involves scanning the program to be compiled and recognizing the tokens that make up the source statements. Scanners are usually designed to recognize keywords, operators, and identifiers, as well as integers, floating point numbers, character strings, and other similar items that are written as part of source program. The exact set of tokens to be recognized depends upon the programming language being compiled and the grammar being used to describe it. Identifiers such as identifiers and integers are usually recognized directly as single tokens. The main aim of the project and implimentation is to develop a lexical analyzer for C++ using Microsoft Visual CSharp 2008. The project and implimentation aims at developing a lexical analyzer that identifies the keywords, identifiers, literals and comments as well.

The Lexical Analyzer will accept C++ program (code) as input and outputs the symbol table, literal table etc after tokenizing the input. A lexical analyzer is capable of doing the following.

¢ Remove all white space.
¢ Break the program into different tokens.
¢ Categorize each fragment as identifier, literal or a keyword.
¢ Display comment if there are any.
¢ Display the tokens in their corresponding tables.

I have used the concept of Collections in order to store the tokens. Collections Supports Linked Lists, Stacks and Hash table which has been used to the full extent. First every word or symbol in the input program are separated from each other and put into a node as and when the white space is encountered. Then these symbols are categorized into keywords, identifiers or literals. Comments are also taken into consideration. That is both single line and multi line comments are considered. After the symbols are categorized, these symbols are put in their respective tables. Four tables are used for literals, identifiers, keywords occurred and for list of keywords considered. A GUI concept is used to display the tables and their contents. Keywords are displayed along with the number of occurrences. Thus the project and implimentation C++ Lex Using CSharp does the job of breaking the input program into fragments for any given C++ program
Use Search at http://topicideas.net/search.php wisely To Get Information About Project Topic and Seminar ideas with report/source code along pdf and ppt presenaion
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page

Quick Reply
Message
Type your reply to this message here.


Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  IMAGE RETRIEVAL USING BOTH COLOR AND TEXTUAL FEATURES USING GLCM ABSTRACT study tips 0 428 08-06-2013, 02:13 PM
Last Post: study tips
  DEMOSAICKING BASED ON IMAGE REFINEMENT USING GRADIENTS AND ARTIFACT REDUCTION USING W seminar tips 0 284 14-11-2012, 01:56 PM
Last Post: seminar tips
  csharp project and implimentations idea project report maker 3 11,842 20-10-2012, 11:17 AM
Last Post: seminar tips
  Edge Detection Using Morphological Method and Corner Detection Using Chain seminar flower 0 342 24-09-2012, 03:09 PM
Last Post: seminar flower
  Transmitter Implementation Using DS-CDMA Technique in FPGA Using Verilog HDL seminar girl 1 923 17-08-2012, 12:00 PM
Last Post: STAR4M