On 2014-11-13 09:50, "Ola Fosheim Grøstad"
So, how to write a source-to-source compiler from CS to D…? ;-)

Take the new .Net compiler (Roslyn) written in C#. Write a tool, in C#, that uses the compiler, visits the AST and generates D code from it.

Bonus:

Run the tool on the .Net compiler and on the tool itself. Then we'll have a .Net compiler and a tool to convert C# to D code, written in D :D

--
/Jacob Carlborg

Reply via email to