Writing a compiler in CTFE

Stefan Koch uplink.coder at googlemail.com
Sun Jul 1 14:18:38 UTC 2018


On Sunday, 1 July 2018 at 13:51:36 UTC, MysteryMan wrote:
> [...]
> For speed of development, instead of having to compile a 
> compiler that then compiles the program I figured using D's 
> CTFE and import could work. For a monolithic compiler file 
> import is used. This is all easily within D's grasp.

Take a look at https://github.com/UplinkCoder/pl0stuff,
which actually does this.
However I would like to point out that, without an archive of all 
the source-modules available at compiletime it'd become very hard.


More information about the Digitalmars-d mailing list