by alexchantavy · 3y ago · 0 comments
I've looked into some compiler-like tools (can't remember the specific ones, sorry), and from what I can tell their code generation phase looks very similar to mine in that they use string templates.
This library does exactly what you prescribe. Pretty sure under the hood it's using macros with string templates
- the value that's constructed has to be valid code - macro "hygiene" is maintained