Enhancing software productivity through templating

College

College of Computer Studies

Document Type

Article

Source Title

Information and Software Technology

Volume

34

Issue

9

First Page

593

Last Page

601

Publication Date

9-1992

Abstract

The paper presents Template Reusability in Programs (TRIP), a programming support environment that increases software productivity through the reuse of code fragments, objects, and logic sets encoded in templates. Templates are procedures that preprocess the source code before it is submitted to a compiler. Preprocessing results in the generation of code segments, which are inserted into one or more locations in a given target code, based on logic rules embedded in templates. To provide the templates with information about the source code as it is being scanned, a directive process matches user-defined patterns in the source code. Directives are responsible for the execution of templates according to the appearance of the user-defined patterns in the source code. The templates are customizable. They can be modified to produce target codes that follow the user's programming standards and styles. In addition, sets of templates may be used to generate codes for different operating environments from the same source code. A salient feature of TRIP is that templates support both the development and maintenance phases of the software life-cycle. The paper describes TRIP's concept of templating, its language, and the image specification and pattern-matching directives. TRIP has been used at Software Brewers, Inc., in the implementation of two software projects: CC2 (a compiler-compiler) and XCobol (a commercial package that generates business application programs in Cobol).

html

Disciplines

Computer Sciences

Keywords

Computer programs; Source code (Computer science)

Upload File

wf_no

This document is currently not available here.

Share

COinS