On 30/05/2018 11:59 AM, Dibyendu Majumdar wrote:
On Thursday, 24 May 2018 at 22:14:50 UTC, Jonathan Marler wrote:
Sad to hear. Was interested to see if this was feasible. I don't have
much experience with the backend but if you're still up for the task,
take a look at `dmd/glue.d`. I don't know how much of the glue layer
this includes but it would be a good start. DMD does have a common
"glue layer" shared by DMD, LDC and GDC, so you'd basically need to
find the API to build this glue layer and that's what you would use.
https://github.com/dlang/dmd/blob/master/src/dmd/glue.d
Hi - not really as I don't know what this does. In any case my
understanding is the interface between the front-end and GDC/LDC is at
the level of ASTs.
Regards
The input is the AST, the output to the backend is some form of IR in
essence.
It just maps one understanding of the code to another form, that's all.