Browse Prior Art Database

Color Highlighter for Computer Program

IP.com Disclosure Number: IPCOM000061858D
Original Publication Date: 1986-Jul-01
Included in the Prior Art Database: 2005-Mar-09
Document File: 1 page(s) / 12K

Publishing Venue

IBM

Related People

Higginbotham, AF: AUTHOR [+2]

Abstract

A method is described which significantly reduces the errors made in reading and revising structured computer program listings due to the difficulty in associating a structural construct with its partner(s).

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

Page 1 of 1

Color Highlighter for Computer Program

A method is described which significantly reduces the errors made in reading and revising structured computer program listings due to the difficulty in associating a structural construct with its partner(s).

Structured programming languages have been developed to improve programmer productivity by the use of structural constructs. For example, an IF- THEN-ELSE-ENDIF structure is a logical structure that is common to most structured languages. It is used with other programming statements to test a condition and to perform either of two steps, depending on the condition tested. For example: IF Bit A is set THEN Load the accumulator with register X ELSE Load the accumulator with register Y ENDIF

Thus, the structure makes the program easy to read and maintain. However, when many IF-THEN-ELSE-ENDIF structures are nested as in the example below, and the structural constructs span several pages, it becomes difficult to associate the IF with its ELSE and ENDIF. page 1 IF Bit A is set THEN Load the accumulator with register X IF Bit B is set THEN Shift left by 4 bits ELSE IF page 2 Bit C is set THEN Output the accumulator to device M ELSE Output the accumulator to device N ENDIF ENDIF ELSE Load the accumulator with register Y IF page 3 Bit C is set THEN Display the accumulator ELSE Blank the display ENDIF ENDIF

In this example, the outer IF-THEN-ELSE-ENDIF spans three pages, making it difficult for the reader to tell which constructs...