Thread overview
A site like cppinsights.io, but for D?
Aug 26, 2018
Alexander Nicholi
Aug 26, 2018
drug
Aug 26, 2018
Dennis
Aug 27, 2018
Stefan Koch
August 26, 2018
I just ran across this website <https://cppinsights.io/> that does some pretty interesting deconstructions of C++ code, and I was wondering if anything like this exists for D. Apparently the main purpose is source-to-source transformation to better show what the compiler sees in your code before it gets turned into IR or assembler or whatever.
August 26, 2018
On 26.08.2018 20:39, Alexander Nicholi wrote:
> I just ran across this website <https://cppinsights.io/> that does some pretty interesting deconstructions of C++ code, and I was wondering if anything like this exists for D. Apparently the main purpose is source-to-source transformation to better show what the compiler sees in your code before it gets turned into IR or assembler or whatever.

visit https://run.dlang.io/ and use AST button to get AST
August 26, 2018
On Sunday, 26 August 2018 at 17:47:56 UTC, drug wrote:
> visit https://run.dlang.io/ and use AST button to get AST

And to do the same offline, pass the -vcg-ast flag to dmd.
August 27, 2018
On Sunday, 26 August 2018 at 17:39:22 UTC, Alexander Nicholi wrote:
> I just ran across this website <https://cppinsights.io/> that does some pretty interesting deconstructions of C++ code, and I was wondering if anything like this exists for D. Apparently the main purpose is source-to-source transformation to better show  what the compiler sees in your code before it gets turned into IR or assembler or whatever.

Hi AS others habe said before,
You can usw -vcg-ast which'll give you a d-ish Repräsentation of what the Compiler will put in the object-file. AS I am the author oft that feature feel free to tell me if information you need is missing.