Generation of C-Code Using XML Parser

Generation of C-Code Using XML Parser Hemlata Dakhore, Anjali Mahajan G.H.Raisoni College of Engineering Nagpur, India Abstract This paper represent ...
Author: Loraine Poole
4 downloads 0 Views 158KB Size
Generation of C-Code Using XML Parser Hemlata Dakhore, Anjali Mahajan G.H.Raisoni College of Engineering Nagpur, India

Abstract This paper represent XML parsing methodology Called XML parsing for C program generated from flow chart. Developing a tool which the user will be able to select various general flowcharting symbol with the help of graphical user interface. Which in turn can produce a source code. These symbols will be nothing but the building blocks of flowchart describing the process flow and data flow of the process. To improve such tool , a graphical method is useful to understand and study the program structure and control aspect of the different task in that entire process. The ultimate aim is to get source code. Flowchart to Code will be the application that would enable a user to draw a flowchart in a drag and drop manner, and would generate the corresponding source code of the drawn flowchart. This application will have an objective of providing a tool for learning and working on programming applied to the knowledge on the basic of flowcharting.

the way to achieve this is to make available the environment for learning programming languages and implement easy to use Graphical User Interface (GUI) so that understanding of programming will be become much more easier and faster. The other use of such technique will be to understand source code with celerity.

Keywords: Flow Chart editor, source code, code editor , XML parser. I. INTRODUCTION Flow chart is a logical display of work flow for any process. In programming activities, flow chart is a useful tool to represent the algorithm design in a general solution level. Flow chart does not necessitate complex syntax and programming language format, therefore programmer could give more concern in the method of problem solving [1]. A completed flow chart should be evaluated and implemented to ensure that the algorithm design fulfill the requirements. A conventional evaluation faces some problems in identifying syntax and logical problems in a flow chart solution. As a result, programming design could not serve as a guideline in programme coding process.In order to enhance student’s understanding towards programming course, a number of tools to aid flow chart development are available such as EdgeDiagrammer[2],SmartDraw[3], FlowChart [4] dan MS Word.Generally, the tools concentrate on the drawing process to create flow chart by providing symbol palet facilities and not on the application of flow chart in problem solving. Hence, the available softwares were not provided with help and monitoring functions to aid users in developing a free error flow chart solution. Information technology is indispensable for commercial, industrial and business developments. It has been a continuous social problem that the number of software developers are always insufficient. To solve this problem, it is necessary to increase the quality and quantity of developers in developer community. One of

Fig 1 Common Symbols used in flowchart.

.Some

Within flowchart structure a simple assignment statements, control and decision blocks like if..else, for.. loop and do.. case will be used. The ultimate aim is to get source code. The other use of such technique will be to understand source code with celerity.Program development can be described as a seven step process: 1. 2. 3.

Understand the problem. Plan the logic of the program. Code the program using a structured high level computer language. 4. Using a compiler, translate the program into a machine language. 5. Test and debug the program. 6. Put the program into production. 7. Maintain and enhance the program. Planning the logic of the program requires the development of algorithms. An algorithm is a finite, ordered set of unambiguous steps that terminates with a solution to the problem. Human readable representations such as flow charts and pseudo code are typically used to

describe the steps of an algorithm and the relationships among the steps.

II XML As an extensible markup language, XML plays a more important role in data representation. XML is a set of rules for encoding documents electronically. It is a textual data format,[ ] with strong support via Unicode for the languages of the world. Although XML’s design focuses on documents, it is widely used for the representation of arbitrary data structures. A) Well-formedness and error-handling The XML specification defines an XML document as a text which is well-formed, i.e., it satisfies a list of syntax rules provided in the specification. The list is fairly lengthy; some key points are: 1. 2. 3. 4. 5.

It contains only properly-encoded legal Unicode characters. None of the special syntax characters such as "