Browse Prior Art Database

POLISH, A Fortran Program to Edit Fortran Programs

IP.com Disclosure Number: IPCOM000128360D
Original Publication Date: 1976-Dec-31
Included in the Prior Art Database: 2005-Sep-15
Document File: 10 page(s) / 34K

Publishing Venue

Software Patent Institute

Related People

John Dorrenbacher: AUTHOR [+6]

Abstract

POLISH is a program which will read ANS Fortran programs and rewrite them in a stylized format designed to be easy for the reader. and conservative in i,ts use of space. Although some editing features, such as spacing conventions about tokens are fixed, many are, subject to user control. POLISH itself is written in ANS Fortran.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 13% of the total text.

Page 1 of 10

THIS DOCUMENT IS AN APPROXIMATE REPRESENTATION OF THE ORIGINAL.

POLISH, A Fortran Program to Edit Fortran Programs

by John Dorrenbacher, David Paddock. . David Wisneski, and Lloyd D. Fosdick

Department of Computer Science University of Colorado Boulder, Colorado Report #CU-CS- 050-76(Revised) May, 1976

This work supported in part by National Science Foundation Grant DCR 75-09972.

ABSTRACT

POLISH is a program which will read ANS Fortran programs and rewrite them in a stylized format designed to be easy for the reader. and conservative in i,ts use of space. Although some editing features, such as spacing conventions about tokens are fixed, many are, subject to user control. POLISH itself is written in ANS Fortran.

Keywords: Fortran text editor

I INTRODUCTION

The text editor POLISH reformats a, FORTRAN program to give it. systematic spacing, indentation, labelling, and other stylistic features desirable'for the reader. The edited program has a differ-ent physical appearance but it is identical to the original program with respect to its execution characteristics. Figures 1, 2, and 3 illus-trate the kind of editing done by POLISH. Style is a matter of taste, but almost any reasonable stylistic conventions will produce a program listing more pleasing to the eye and easier for the human reader to follow. Other FORTRAN text editors are TIDY'[11, FORDOC [2]~ FORTREDIT [2]. Particular features of POLISH which distinguish it from others are that it is written in ANS FORTRAN (cf. Appendix D), no manual insertion of editing cues in the uned.ited text. is necessary but such cues may be used, line widths may be controlled, and spacing between tokens is controlled. Since early in 1974 POLISH has been used to prepare the FORTRAN listings which appear in the Algorithms Department of the Communications of the ACM and more recently in ACM Transactions on Mathematical Software; see for example [3].

POLISH is a subroutine subprogram. Parameters which control certain editing features are passed to POLISH through COMMON storage.. When called into execution it will read the unedited FORTRAN text from a file and write the edited FORTRAN text onto another file; both files are specified by the user. Aside from certain exceptions noted in Section 2, it is a ssumed that the text to be edited is a sy ntactically correct ANS FORTRAN program. There are, some circumstances in which it is desirable to inhibit editing of a text segment; most typically in

(Image Omitted: Figure I. a: Program before processing by POLISH.)

(Image Omitted: Figure l.b: Program after.processing by POLISH.)

University of Colorado Page 1 Dec 31, 1976

Page 2 of 10

POLISH, A Fortran Program to Edit Fortran Programs

(Image Omitted: Figure 2.a: Program before processing by POLISH.)

(Image Omitted: Figure 2.b: Program after processing by POLISH.)

(Image Omitted: Figure 3.a: Program before processing by POLISH.)

(Image Omitted: Figure 3.b* Program after processing by POLISH.)

COMMENT blocks tha...