I have written a simple assembler using flex+bison. I'd like to add a preprocessor (macros) to the assembly language. This is my first time trying to use flex+bison, I'm not sure how to go about this.
Is it appropriate to add a separate instance of flex+bison and do the preprocessing completely separately? Or do they support expressing different constructs for different phases of processing?
If curious, the assembler is here, for the DCPU-16 architecture.