There are 2 repositories under macroprocessor topic.
This GitHub repository contains System Programming codes focusing on linker, loader, macroprocessor, assembler implementations and many more
Two pass Macro Processor using JAVA.