Alma-O: an imperative language that supports declarative programming

  • Authors:
  • Krzysztof R. Apt;Jacob Brunekreef;Vincent Partington;Andrea Schaerf

  • Affiliations:
  • CWI and University of Amsterdam;University of Amsterdam;University of Amsterdam;Università di Roma "La Sapienza"

  • Venue:
  • ACM Transactions on Programming Languages and Systems (TOPLAS)
  • Year:
  • 1998

Quantified Score

Hi-index 0.00

Visualization

Abstract

We describe here an implemented small programming language, called Alma-O, that augments the expressive power of imperative programming by a limited number of features inspired by the logic programming paradigm. These additions encourage declarative programming and make it a more attractive vehicle for problems that involve search. We illustrate the use of Alma-O by presenting solutions to a number of classical problems, including &agr;-&bgr; search, STRIPS planning, knapsack, and Eight Queens. These solutions are substantially simpler than their counterparts written in the imperative or in the logic programming style and can be used for different purposes without any modification. We also discuss here the implementation of Alma-O and an operational, executable, semantics of a large subset of the language.