The document discusses three main options for macro processor design:
1. Recursive macro expansion, which allows macro invocation statements to appear within other macros. This requires saving previous variable values and other details when recursively calling a macro.
2. General-purpose macro processors that can be used across different languages, providing savings in training, development costs, and maintenance effort compared to language-specific processors. However, they are more difficult to develop due to details of individual languages.
3. Integrating macro processing within language translators by either operating line-by-line with the translator or more tightly integrating the two systems. This avoids an extra source code pass but increases complexity.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100%(1)100% found this document useful (1 vote)
2K views10 pages
Macro Processor Design Options
The document discusses three main options for macro processor design:
1. Recursive macro expansion, which allows macro invocation statements to appear within other macros. This requires saving previous variable values and other details when recursively calling a macro.
2. General-purpose macro processors that can be used across different languages, providing savings in training, development costs, and maintenance effort compared to language-specific processors. However, they are more difficult to develop due to details of individual languages.
3. Integrating macro processing within language translators by either operating line-by-line with the translator or more tightly integrating the two systems. This avoids an extra source code pass but increases complexity.