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
   97   98   99   100   101   102   103   104   105   106   107