Share with others

Macro Processor Pass Two in C Language

Implementation of Macro Processor Pass Two. Following cases to be considered

a)Macro without any parameters

b)Macro with Positional Parameters

c)Macro with Key word parameters

d)Macro with positional and keyword parameters

Macro definition and Call Macro Expansion,Design of Macro Processor Definition and expansion processing.Algorithms along with Data structures Nested Macro calls,Call within a call and definition within a definition.

Macro Processor Pass Two Code

Input File

MACRO
INCR    &MEM_VAL,&INCR_VAL,&REG
MOVER    &REG,&MEM_VAL
ADD    &REG,&INCR_VAL
MOVEM    &REG,&MEM_VAL
MEND


Share with others