DESIGN OF MACRO PREPROCESSOR
Download
Report
Transcript DESIGN OF MACRO PREPROCESSOR
DESIGN OF MACRO PREPROCESSOR
Tasks involved in macro
expansion
Identify macro calls in the program
Determine the values of formal
parameters
Macro Name Table (MNT)
Actual Parameter Table (APT)
Parameter Default Table (PDT )
Maintain the value of EV declared
Expansion Time Variables (EVT)
Tasks involved in macro
expansion
Organize expansion time control flow
Determine the value of seq. symbol
Macro definition Table (MDT)
Sequencing Symbols Table (SST)
Perform expansion of model statement
Design Specification for each
Task
Identify information to perform the task
Design data structure to record the info
Determine processing to obtain the
info
Determine processing to perform the
task