You are on page 1of 2

Macro represents a group of commonly used statements in the source programming

language. A macro processor is a program that copies a stream of text from one place to
another. Macro processors are often embedded in other programs, sometimes they are
standalone programs.

Macro Processor involves definition, invocation and expansion.

Definition:

Macro definition involves marking the end and beginning of the macro code and writing down the
instructions or its body.

Invocation:

A macro invocation statement (a macro call) gives the name of the macro instruction being invoked
and the arguments to be used in expanding the macro. macro _ name p1, p2, …

Expansion:

Replace each macro instruction with the corresponding group of source language statements

You might also like