On 2011-09-28 22:52, Nick Sabalausky wrote:
"Jacob Carlborg"<[email protected]> wrote in message
news:[email protected]...
I think that the right approach would be to have a modular frontend
written in D that can be used as a library, think Clang. Then DMD could
use this frontend and connect it with the DMC backend.
To get this frontend I think the DMD frontend needs to be ported to D
without much modification in the first step. DMD would then use the D
version of the frontend. When the complete frontend is ported and used by
DMD, then we could start refactoring the frontend to make it more modular.
I think this is the most realistic approach. I don't think Walter would
just drop the DMD frontend and start with a new one, or use some other
frontend developed by someone else.
I agree, but I think it might be best to start by creating D bindings to the
C++-based frontend. That way the frontend could be ported to D (without much
modification) piece-by-piece. Kind of like the way Walter's porting Optlink
from Asm to C.
I guess starting with that would be even better. The question is, how
would that be done? Using D's capabilities in connecting with C++ or a C
interface?
--
/Jacob Carlborg