Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Automatic Construction of Java Programs from Functional Program Specifications

Author 1: Md. Humayun Kabir
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 6, No. 4 · Published 2015

DOI: https://doi.org/10.14569/IJACSA.2015.060409

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.

Keywords

How to Cite this Article

Kabir, M. H. (2015). Automatic Construction of Java Programs from Functional Program Specifications. International Journal of Advanced Computer Science and Applications, 6(4). https://doi.org/10.14569/IJACSA.2015.060409

Kabir, Md. Humayun. "Automatic Construction of Java Programs from Functional Program Specifications." International Journal of Advanced Computer Science and Applications, vol. 6, no. 4, 2015, https://doi.org/10.14569/IJACSA.2015.060409.

@article{Kabir2015,
  title     = {Automatic Construction of Java Programs from Functional Program Specifications},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {6},
  number    = {4},
  year      = {2015},
  publisher = {The Science and Information Organization},
  author    = {Md. Humayun Kabir},
  doi       = {10.14569/IJACSA.2015.060409},
  url       = {https://doi.org/10.14569/IJACSA.2015.060409}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.