Page 113 - DCAP507_SYSTEM_SOFTWARE
P. 113
Unit 7: Macro Language
When ENDW is encountered, the macro processor returns to the previous Notes
WHILE, reevaluates the Boolean expression, and takes action again.
FALSE
The macro processor skips ahead in DEFTAB until it locates the next ENDW
statement and then recommences normal macro development.
Self Assessment
Fill in the blanks:
14. When an IF statement is encountered throughout the expansion of a macro, the specified
.............................. is evaluated.
15. When ENDW is encountered, the macro processor returns to the previous ..............................,
reevaluates the Boolean expression, and takes action again.
7.4 Summary
A macro instruction (macro) is just a notational expediency for the programmer to write
a shorthand edition of a program.
A macro processor functions fundamentally engross the replacement of one group of
characters or lines for another.
The first MACRO statement determines the start of macro definition.
The macro name and parameters define the outline or prototype for the macroinstruction
utilized by the programmer.
A macro invocation statement (a macro call) provides the name of the macroinstruction
being summoned and the arguments in mounting the macro.
Each macro invocation statement will be expanded into the statements that produces the
body of the macro.
Most Macro Processor permits parameters to be concatenated with other character strings.
Labels in the macro body may reason "duplicate labels" problem if the macro is invocated
and expanded multiple times.
Parameters and arguments are connected as per their positions in the macro prototype
and invocation.
7.5 Keywords
Labels: Labels in the macro body may reason "duplicate labels" problem if the macro is invocated
and expanded multiple times.
Macro Expansion: Each macro invocation statement will be expanded into the statements that
produces the body of the macro.
Macro Instruction: A macro instruction (macro) is just a notational expediency for the
programmer to write a shorthand edition of a program.
Macro Invocation: A macro invocation statement (a macro call) provides the name of the
macroinstruction being summoned and the arguments in mounting the macro.
Macro Processor: A macro processor functions fundamentally engross the replacement of one
group of characters or lines for another.
LOVELY PROFESSIONAL UNIVERSITY 107