The ddoc text macro system in the dmd source code macro.h and macro.c should be implemented as a phobos module.
The inputs should be:
1. an input range
2. an associative array of key=value pairs for the macro definitions
And the output should be another input range for the expanded output.
Comment #1 by robert.schadek — 2024-12-01T16:16:07Z