Looking at the code it feels more like an assembler than a compiler since there is no mess and it outputs C code.
But it is very clean and nice. I like the pattern.
But it is very clean and nice. I like the pattern.
Yes, translating between closely related languages is often like this: the mapping between their constructs is 1-to-1 and almost trivial. But try translating e.g. λ-calculus into C in one go, without separate lambda-lifting/closure-converting steps: it's absolutely doable but quite messy.
Yes it's a kind of transpiler, or template compiler, a typically 1-1 mapping.