Techreport,

Exploiting the m4 Macro Language

.
Department of Computing Science and Mathematics, University of Stirling, Scotland, (September 1994)

Abstract

m4 is a macro language and macro processor that is available with a number of operating systems such as UNIX and MS-DOS. The role of m4 is discussed, and it is concluded that m4 has a useful part to play even though it has not achieved widespread popularity. A summary of m4 is given along with some basic examples. A cookbook of techniques is then described, allowing surprisingly sophisticated macros to be developed. Some applications of the approach are described for specifying Open Systems Interconnection standards, telecommunications service creation and digital logic circuits. To show the range of possibilities for m4, a few uses by others for specification and text-processing are briefly discussed.

Tags

Users

  • @gdmcbain

Comments and Reviews