Automatic Construction of Java Programs from Functional Program Specifications

Abstract

This paper presents a novel approach to construct Java programs automatically from the input functional program specifications on natural numbers from the constructive proofs of the input specifications using an inductive theorem prover called Poiti'n. The construction of a Java program from the input functional program specification involves two phases. The theorem prover is used to construct a higher order functional (HOF) program from the input specification expressed as an existential theorem. A set of mapping rules for a Programming Language Translation System (PLTS) is defined for translating functional expressions to their semantic equivalent Java code. The generated functional program is translated into intermediate Java code in the form of a Java function using the PLTS module. The generated Java function requires a small refinement to obtain a syntactically correct Java function. This Java function is encapsulated within a user defined Java class as a member operation, which is invoked within a Java application class consisting of a main function by creating objects resulting in an executable Java program. The constructed functional program and the generated Java program both are correct with respect to the input specification as they produce the same output.

Authors and Affiliations

Md. Kabir

Keywords

Related Articles

Rule Based System for Recognizing Emotions Using Multimodal Approach

Emotion is assuming increasing importance in human computer interaction (HCI), in general, with the growing feeling that emotion is central to human communication and intelligence. Users expect not just functionality as...

IAX-JINGLE Network Architectures Based-One/Two Translation Gateways

Nowadays, Multimedia Communication has improved rapidly to allow people to communicate via the Internet. However, Internet users cannot communicate with each other unless they use the same chatting applications since eac...

Representation Modeling Persona by using Ontologies: Vocabulary Persona

Semantic Web is then to add to all these resources semantics that allow computer systems to "understand" the meaning by accessing structured collections of information and inference rules that can be used to drive reason...

Human Gait Feature Extraction based-on Silhouette and Center of Mass

When someone walks, there is a repetitive movement or coordinated cycle that forms a gait. Gait is different, unique and difficult to imitate. This characteristic makes gait one of the biometrics to find out one's identi...

Challenges of Medical Records Interoperability in Developing Countries: A Case Study of the University Teaching Hospital in Zambia

The University Teaching Hospital (UTH) is an integral national referral Hospital made up of eight departments. Standardized systems and semantic interoperability is key for successful flow of patient information from one...

Download PDF file
  • EP ID EP132443
  • DOI 10.14569/IJACSA.2015.060409
  • Views 115
  • Downloads 0

How To Cite

Md. Kabir (2015). Automatic Construction of Java Programs from Functional Program Specifications. International Journal of Advanced Computer Science & Applications, 6(4), 65-72. https://europub.co.uk/articles/-A-132443