Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

On the Use of a Macro Processor with SUMX

Technical Report ·
DOI:https://doi.org/10.2172/1453908· OSTI ID:1453908
 [1]
  1. 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:
SLAC National Accelerator Laboratory (SLAC), Menlo Park, CA (United States)
Sponsoring Organization:
USDOE Office of Science (SC); US Atomic Energy Commission (AEC)
DOE Contract Number:
AC02-76SF00515
OSTI ID:
1453908
Report Number(s):
SLAC-R--151; SLAC--151
Country of Publication:
United States
Language:
English

Similar Records

Use of a macro processor with SUMX
Technical Report · Thu Jun 01 00:00:00 EDT 1972 · OSTI ID:4589646

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

Related Subjects