Page 102 - DCAP507_SYSTEM_SOFTWARE
P. 102
System Software
Notes 7.1.4 Macro Processor Algorithm and Data Structures
It is simple to design a two-pass macro processor in which all macro definitions are
accessed throughout the first pass, and all macro invocation statements are extended
during second pass.
Such a two pass macro processor would not permit the body of one macroinstruction to
enclose definitions of other macros.
Example:
Example:
96 LOVELY PROFESSIONAL UNIVERSITY