On 2020-08-05 09:57, cy wrote:
Well, I did find this:
https://dlang.org/blog/2017/08/01/a-dub-case-study-compiling-dmd-as-a-library/
That is more for using the frontend, not the backend for generating code.
But it's pretty advanced... probably just invoking dmd would be good...
You can st
On Wed, Aug 05, 2020 at 06:02:58AM +, cy via Digitalmars-d-learn wrote:
> D's compile-time-execution is fantastic, but there are some times when
> I'd like to examine the generated code, or produce code that needs to
> pass through earlier phases before CTFE, or do AST stuff. Sometimes I
> simp
On Wednesday, 5 August 2020 at 06:02:58 UTC, cy wrote:
Some way to import the compiler itself, instead of calling it
in a subprocess?
Well, I did find this:
https://dlang.org/blog/2017/08/01/a-dub-case-study-compiling-dmd-as-a-library/
But it's pretty advanced... probably just invoking dmd w
D's compile-time-execution is fantastic, but there are some times
when I'd like to examine the generated code, or produce code that
needs to pass through earlier phases before CTFE, or do AST
stuff. Sometimes I simply don't want to generate the code with
every compilation, so saving the generat