A tiny portable language-independent macroprocessor and some applications

  • Authors:
  • Robert C. Gammill

  • Affiliations:
  • North Dakota State University, Fargo, North Dakota

  • Venue:
  • AFIPS '81 Proceedings of the May 4-7, 1981, national computer conference
  • Year:
  • 1981

Quantified Score

Hi-index 0.00

Visualization

Abstract

A tiny language-independent macroprocessor is described. It is easily implemented in most programming languages. A compact and portable implementation in ANSI FORTRAN is given. The simplicity of the implementation results from a user-specified escape character used to mark all macro calls. The result is a macro language not easily read by beginners. All primitive macro operations, including definition, are simple macro calls. The tiny macroprocessor has proved a powerful software tool in a number of applications. These include source text decompression, character set encoding for transmission, and as the basis for a linking loader. The compactness and portability of the processor make it useful in moving software from one machine to another. The simplicity of the processor makes it easy to extend or modify for new applications. The tiny macroprocessor is a simple yet useful addition to the software engineer's tool kit.