a portable text editor

1

Click here to load reader

Upload: colin-day

Post on 02-Jul-2016

231 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: A portable text editor

Computer Physics Corn municat ion 13 (1977) 101 - 105 © North-Holland Publishing Company

C-417

A PORTABLE TEXT EDITOR

Col in D A Y

Computer Centre, Universio, College London, London, UK

Received 1 February 1977

PROGRAM SUMMARY

Ttitlc ofprogram : STRING RI-PLACEM I'NT PROG RAM

Catalogue number: ACXJ

Computer: Installation: IBM 360•65 University College, London CDC 7600 Univ. of London Comp. Centre CDC 6400 Impcrial College, London

Operathlg system or monitor under which the program is ex- ecuted: OS MFT

Programmhlg language used: 1-O R TR A N

ltigh speed storage required: c.8000 words

No. o f bits hi a word: 32

Ol,erlay structure: no

No. o f magnetic tapes required: none

Other peripherals used: card reader, line printer, other as re- quired

No. o f cards in comb#led program and test deck: 283

Keywords: general purpose, utility, editor, preprocessor, program generator

Nature o f physical problem A portable editor is needed for amending programs.

Method o f solution The String Replacement Program is a fully portable program written mostly in ANSI Basic Standard FORTRAN.

Restrictions on the complexity oJ the problem Only character strings of the same length can be replaced.

Typical runnh~g time Less than 1 sec per 1000 cards on a CDC 7600.

Unusual features o f the program Incorporates fully portable character manipulation.

Reference [ 1 ] A.C. Day. Fortran techniques (Cambridge University

Press, 1972).