Use of a macro processor with SUMX
- SLAC National Accelerator Laboratory (SLAC), Menlo Park, CA (United States)
If the SUMX control statements are considered as forming a base "language", then the power of equipping it with a macro facility becomes obvious. In the following report, we describe a simple scheme which consists of making one preprocessing pass through a general purpose (that is, base-language-independent) macro processor called MACROS. The input text is prepared using base language statements (preferably in terms of variable symbols rather than fixed values) interspersed with preprocessor statements, such as macro definitions, macro calls, and value assignments to symbols. Prior to processing, this text is compiled by MACROS into a target text consisting entirely of base language statements. In Section II our scheme is described by an actual example with enough variety to illustrate most features of MACROS. Appendix A gives a formal description of the processor for reference purposes. In Appendix B we briefly summarize various CHARMs used in the example. In Section III, several examples of errors in using the processor are collected, which also serve to show the limited capability of MACRO01. Appendix C has models for Job Control Language statements required to run.
- Research Organization:
- Stanford Linear Accelerator Center, Menlo Park, CA (United States); Max Planck Inst. fuer Physik und Astrophysik, Munich (Germany)
- Sponsoring Organization:
- US Atomic Energy Commission (AEC); USDOE
- NSA Number:
- NSA-27-005359
- OSTI ID:
- 4589646
- Report Number(s):
- SLAC--151; SLAC-R--151
- Country of Publication:
- United States
- Language:
- English
Similar Records
On the Use of a Macro Processor with SUMX
A structured macro assembler for the Event Handler
MAC74, A General Purpose Macro Processor
Technical Report
·
Thu Jun 01 00:00:00 EDT 1972
·
OSTI ID:1453908
A structured macro assembler for the Event Handler
Conference
·
Sun Oct 01 00:00:00 EDT 1989
· IEEE Transactions on Nuclear Science (Institute of Electrical and Electronics Engineers); (USA)
·
OSTI ID:7091220
MAC74, A General Purpose Macro Processor
Technical Report
·
Sun Sep 01 00:00:00 EDT 1974
·
OSTI ID:1453929