An interactive source commenter for Prolog programs

  • Authors:
  • David Roach;Hal Berghel;John R. Talburt

  • Affiliations:
  • Center for Artificial Intelligence and Expert Systems, 131 Biomass Research Center, University of Arkansas, Fayetteville, AR;Center for Artificial Intelligence and Expert Systems, 131 Biomass Research Center, University of Arkansas, Fayetteville, AR;Center for Artificial Intelligence and Expert Systems, 2801 S. University, University of Arkansas at Little Rock, Little Rock, AR

  • Venue:
  • SIGDOC '90 Proceedings of the 8th annual international conference on Systems documentation
  • Year:
  • 1990

Quantified Score

Hi-index 0.00

Visualization

Abstract

Prolog meta-circular interpreters, i.e., interpreters for Prolog written in Prolog, perform at least two operations on an object program - they parse it and execute its instructions. There is a useful variant of the meta-circular interpreter, the meta-circular parser, which as its name suggests, parses an object program without executing its instructions. The value of such a parser is that it provides an elegant means to modify Prolog source code. As the object program is parsed, new information in the form of additional instructions, comments, etc., can be selectively inserted.The Prolog source code commenter we describe is a meta-circular parser with facilities added to allow a user to interactively enter comments. As a Prolog program is parsed into its basic components, the user is allowed to view that component and enter an appropriate comment. The result is a new fully commented (and formatted) source program.