8 ms·
code generators are programs written in an existing programming language, which produce target language source code as output macros are programs written in a
by preseinger 3y ago
code generators are programs written in an existing programming language, which produce target language source code as output
macros are programs written in a separate, unique, often turing-complete meta-language, which is implemented entirely in the compile phase of the language which supports them
they're in no way equivalent