An Efficient Approach to Produce Source Code by Interpreting Algorithm

Page 1

International Research Journal of Engineering and Technology (IRJET)

e-ISSN: 2395 -0056

Volume: 04 Issue: 03 | Mar -2017

p-ISSN: 2395-0072

www.irjet.net

An efficient Approach to Produce Source Code by Interpreting Algorithm Priyanka Motkari, Bhagyashree Wable, Supriya Walzade, Pooja Velhal Student, Dept. of Computer Engineering, KKWIEER, Nashik, Maharashtra, India ---------------------------------------------------------------------***---------------------------------------------------------------------

Abstract - People may possess good logical skills along

converting algorithms written in natural language to a programming language. The person can focus on problem solving and he becomes free from syntactical worries using this software. Although such software may be very beneficial, various challenges are involves for its realization.

with great algorithmic solution designing capabilities but the inadequate knowledge of programming languages makes them handicapped. Neophyte programmers may find it difficult to learn general programming skills and syntactical skills simultaneously. Visually impaired developers suffer as they spend double the time in eradicating syntactical errors as compared to any programmer with a normal vision. The conversion of an algorithm to code is still at an early stage. Effective conversion of algorithms mentioned in natural English language to code will enable programmers to focus on logic building and confine them from syntactical errors, further it will also aid the visually impaired programmers. Although beneficial, fulfillment of such a converter encounters multiple challenges like limitations imposed due to semantics of the English language, case frames, etc. An algorithm to program converter is an interpreter that is capable of converting algorithms in English (with fixed input format) to C code whose flexibility of interpretation has been enhanced by using synonyms and by the introduction of a personalized training model.

The rest of the paper organizes as follows: Section 2 discusses the literature survey; Section 3 highlights the challenges faced implementing natural language to code interpreter; Section 4 puts forth the conceptual model; Section 5 gives a concluding remark and outlines the future scope.

2. LITERATURE SURVEY There is a common factor between Natural Language Processing and Programming languages which is “Language”. Natural Language Processing and Programming languages are very important domains in computer science but very less importance has been given to the interaction in between these two fields [6, 8]. Previously study has been done to develop interpreter which convert algorithm in natural language to the programming language source code. But each of such is having certain limitations. Examples of such interpreter are ALGOSmart, Natural Java and Semi Natural Language Algorithm to Programming Language Interpreter.

Key Words: Interpreters, Parsing, NLP, Personalized, Trigger words

1. INTRODUCTION

Programming is used in wide variety of domains like astronomy, industrial automation, financial analysis, microbiology, etc. [5]. It has become ubiquitous highly efficient solution offered by programming and Information Technology has been playing a vital role in the rapid growth and transformation of today. Algorithms form the fundamental blocks of programming and are core to solution designing. Implementation of these algorithms using programming languages serves as a major hurdle.

|

Impact Factor value: 5.181

NaturalJava

The other proposal was NaturalJava. It is natural language based user interface which allows a user to enter algorithm in natural English language and it provides the corresponding Java code. The archetypical implementation of the proposal mentioned above, called NaturalJava, Have three main modules as shown in Figure below PRISM [7] allowed the user to input an algorithmic statement in English language which was in turn passed to Sundance.

Though people have good logical skills along with great algorithmic solution designing capabilities but due to lack of knowledge of programming languages make them handicapped. It is difficult for neophyte programmers to learn syntactical skills and general programming skills simultaneously. Therefore it is necessary to develop software that is capable of

© 2017, IRJET

ALGOSmart

ALGOSmart [5] is an interpreter which converts pseudo which is written using XML to the programming language source code which is in C and Java. But the ALGOSmart interpreter forces an extra overhead on users by making it compulsory for them to have knowledge about a set of predefined XML tags and their correct implementation and use.

|

ISO 9001:2008 Certified Journal

| Page 2803


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.